Skip to content

Remix nested layout (with actions) and namedAction #154

Closed Answered by sergiodxa
jorisre asked this question in Q&A
Discussion options

You must be logged in to vote

namedAction will work per route, so if you have a named action in one route and another named action in another route the library can't know based on the name what route to call, you POST to a route and the action function runs, then use namedAction to branch out inside the action function what it's doing.

in your case, if you want to run duplicate you need to send the post to /products/:id and not /products/:id/detail.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jorisre
Comment options

Answer selected by sergiodxa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants