You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a root.tsx where app and layout are defined, and routes/home.tsx where the home component lives with its loaders, my question is how to attach action to the index("routes/home.tsx") ? placing the action in the same file with the loader doesn't work, i was able to make it working by placing the action in the root.tsx file which isn't convenient !
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a config that looks like this:
i have a
root.tsx
where app and layout are defined, androutes/home.tsx
where the home component lives with itsloaders
, my question is how to attachaction
to theindex("routes/home.tsx")
? placing theaction
in the same file with theloader
doesn't work, i was able to make it working by placing theaction
in theroot.tsx
file which isn't convenient !Beta Was this translation helpful? Give feedback.
All reactions