-
Hey guys, picker up the framework not long ago and started playing with it, finally found the first part where I'd need to use const fetcher = useFetcher();
const loadMore = useCallback(() => {
if (!nextPage) return;
fetcher.load(nextPage);
}, [nextPage, fetcher]); It's pretty simple and straight forward, I might be doing something wrong and if so I'd hope someone could explain it to me. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What is If you're trying to load the index route, then the url should include |
Beta Was this translation helpful? Give feedback.
What is
nextPage
?If you're trying to load the index route, then the url should include
?index
. This is because the URL/
matches both the root route and the routes/index route. Remix uses?index
to disambiguate them.