Action "..." not found at Module.namedAction #9713
Unanswered
rodolphoasb
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a workflow builder that has an autosave feature, this is the way that I've implemented it (I'm using
namedAction
anduseDebounceFetcher
fromremix-utils
):The problem is that:
Let's say that I move one node around (this triggers the debounceFetcher submit) and immediately try to navigate to another route - clicking on a sidebar link for example. When I get to that route there isn't a named Action with that name, so I get the error:
So basically, I'd need a way to "cancel" this fetcher that was sent.
I tried to used a
default
inside the namedAction in the other route, but that doesn't seem to be working. And also, I'm not sure if it's the best solution, since there's a lot of different routes the user can navigate to and I'd need to add a default to every one of them.How would you handle this problem?
Beta Was this translation helpful? Give feedback.
All reactions