test to see if it fixes infinite resolve
This commit is contained in:
parent
0ca59a809f
commit
e5f3345d9b
1 changed files with 2 additions and 7 deletions
|
@ -13,7 +13,6 @@ type Props = {
|
||||||
resolveUri: string => void,
|
resolveUri: string => void,
|
||||||
uri: string,
|
uri: string,
|
||||||
claim: StreamClaim,
|
claim: StreamClaim,
|
||||||
totalPages: number,
|
|
||||||
location: UrlLocation,
|
location: UrlLocation,
|
||||||
blackListedOutpoints: Array<{
|
blackListedOutpoints: Array<{
|
||||||
txid: string,
|
txid: string,
|
||||||
|
@ -29,12 +28,8 @@ class ShowPage extends React.PureComponent<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
const { isResolvingUri, resolveUri, claim, uri, totalPages } = this.props;
|
const { isResolvingUri, resolveUri, claim, uri } = this.props;
|
||||||
if (
|
if (!isResolvingUri && uri && claim === undefined) {
|
||||||
!isResolvingUri &&
|
|
||||||
uri &&
|
|
||||||
(claim === undefined || (claim && claim.name[0] === '@' && totalPages === undefined))
|
|
||||||
) {
|
|
||||||
resolveUri(uri);
|
resolveUri(uri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue