apollographql/apollo-link-state

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

tsaohucn opened this issue · 0 comments

  • 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?