#How can I get the params like you do with useParams() but in an ActionFunction?

1 messages · Page 1 of 1 (latest)

placid rose
#

you can get it on the argument the action receives, this is an example with all three properties that single object contains:

export async function action({ request, params, context }: ActionArgs) {
  // use params here
}
#

action and loaders both receives the same three properties on that argument