Cool project! refetch might want to be changed a bit
See original GitHub issuecurrently you don’t check if refetch is truthy – it’s only if refetch changes (code).
I’d recommend renaming it to refetchKey
or fetchKey
– it can tie into people’s understanding of react’s key
prop.
If the fetch key
changes, then it will fetch again. Similar to how in react, if the key
changes, then the component gets unmounted & remounted.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
58 Easy DIY projects and makes to do this weekend
Below we've rounded up loads of simple projects that will allow you to give any room of the home a fresh new look,...
Read more >Updates were rejected because the remote contains work that ...
I have been reading about this error for a few days now, I can't push to the repo anymore because I am getting...
Read more >Visual Studio doesn't reload all changed project files after ...
As a workaround, as we work on investigating a fix, you might want to use the internal VS git tools to change branches,...
Read more >When Using useMemo is A Really Bad Idea | by Lina Suodyte
This happens because fetchListOfMovies would be called on every new render and the reference to listOfMovies would change, even if its value remains...
Read more >angular force cache refresh after deployment
I have some problem everytime i get up date the project and my clients ... is set the server will automatically reload for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@CharlesMangwa cool project 😃 I would like to contribute in the project. Are you working on this or can I take it up ?
@CharlesMangwa yes you got it right. May be an example folder can be added which has a demo react app where the functionalities can be tested. I agree not for this change but for any core change which needs testing, it would be great to have a demo app where it can be easily tested.