Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cool project! refetch might want to be changed a bit

See original GitHub issue

currently 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:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

ad1992commented, Mar 23, 2018

@CharlesMangwa cool project 😃 I would like to contribute in the project. Are you working on this or can I take it up ?

ad1992commented, Mar 27, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found