Reload Button for refetching
JawHawk opened this issue · 5 comments
JawHawk commented
If due to network or server problem, Latest Anime API or background image API failed, a reload option should be displayed instead to refetch. This would solve the problem that user has to refresh the page to update.
JawHawk commented
Sure @mukeshmx, I have added the hacktoberfest label
Refresh Button should be for both background and latest anime drawer
Here is the respective file for that: https://github.com/JawHawk/Anichinu/blob/main/src/pages/Newtab/Newtab.tsx
Below is Code for Reload Button
<Tooltip label={'Reload'}>
<ActionIcon variant="subtle" size={'lg'} onClick={() => {...refetch code}}>
<Reload size={25} />
</ActionIcon>
</Tooltip>
Also do fork the repo and make a new branch having name similar to issue to create a PR
mukeshmx commented
I tried, I'm not getting the results :(