https://github.com/knisterpeter/test-remix-fetcher-loop
https://github.com/knisterpeter/test-remix-fetcher-loop
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/knisterpeter/test-remix-fetcher-loop
- Owner: KnisterPeter
- Created: 2022-05-04T13:44:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-04T13:52:53.000Z (about 4 years ago)
- Last Synced: 2025-01-20T18:28:58.250Z (over 1 year ago)
- Language: TypeScript
- Size: 292 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is created from the remix indie stack starter.
It does show an endless loop using the fetcher to load some api data:
https://github.com/KnisterPeter/test-remix-fetcher-loop/blob/main/app/routes/fetcher.tsx
The fetcher does change a soon as data is fetched, this will lead to an
endless loop of requests made.
https://remix.run/docs/en/v1.4.3/api/remix#usefetcher does seem to suggest this
pattern, but it looks like it's not sufficient.