Question about prefetch #4103
-
Hi everyone I read through docs on prefetching and couldn't 100% understand the difference between dispatching the query initiate action and dispatching the prefetch action. Is it correct to say that prefetch does NOT add a subscription where the initiate thunk does? Background: I am thinking about using react router v6 loaders and was wondering of the prefetch action would be a good fit to trigger when a route is matched. Since trigger the regar initiate action/thunk needs to be unsubscribed if I ever want that to be cleaned up and it's a bit tricky to do. Additional question: Thanks in advance for the clarification. Related but older: #2751 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
see #1283 for discussion of prefetch's subscription |
Beta Was this translation helpful? Give feedback.
see #1283 for discussion of prefetch's subscription