Skip to content

componentDidUpdate - this.request is null #374

@sakerrr

Description

@sakerrr

Hi, when rerendering InstagramEmbed fast - switching between articles very fast, we sometimes get Cannot read property of null ( reading 'cancel' ) in componentDidUpdate method.

Seems that simple this.request?.cancel() should fix it. Or is there any other way I can fix it ? We are using basic example component from docs.

Thank you
Screenshot 2022-03-31 at 13 33 09

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions