Replies: 1 comment 1 reply
-
You can't point to an action in a pathless layout route (defined in routes.ts with You could do it if it's not a pathless layout but a route that works as a layout (defined in routes.ts with What you can do is to create a resource route, a route without a component, only a loader or action, and fetch that using useFetcher. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my scenario what i have, i have a layout route which have header and outlet like this
but in this layout i have three different pages, but a form of support with email , message i am using. which need clientAction, but its hard to declare condition to handle the action in three page separately. so if its possible to use clientAction in the layout.jsx may it better and i wont have to write the same code in three different page clientAction.
do have any solution of this problem?
Beta Was this translation helpful? Give feedback.
All reactions