Skip to content
This repository has been 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

Open
1 task
tsaohucn opened this issue Mar 14, 2019 · 0 comments

Comments

@tsaohucn
Copy link

  • 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?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant