test to see if it fixes infinite resolve

This commit is contained in:
Sean Yesmunt 2019-10-03 14:59:40 -04:00
parent 0ca59a809f
commit e5f3345d9b

View file

@ -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);
} }
} }