Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

How to let Query componet only fetch cache data only in first time componet building? #347

@tsaohucn

Description

@tsaohucn
  • feature
    I have a Query component link apollo cache, everytime the cache changed, then my render props in Query component will execute for rerender, but my app also subscribe a mqtt server sync update my apollo cache, it will cause my page(componet) update random and unexpected when user is watch this page, I only hope doing like once query when everytime componentDidMonut, then update date until next time component close(componentWillUnMonut) then componentDidMonut again, so is there any option can do that function for disable rerender?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions