By default, useFetcher generate a unique fetcher scoped to that component. If you want to identify a fetcher with your own key such that you can access it from elsewhere in your app, you can do that with the key option:
// Somewhere else functionAnotherComp() { // this will be the same fetcher, sharing the state across the app letfetcher = useFetcher({ key:"my-key" }); // ... }
By default,
useFetcher
generate a unique fetcher scoped to that component. If you want to identify a fetcher with your own key such that you can access it from elsewhere in your app, you can do that with thekey
option: