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
The action returns the payload from the api for success/failure messages. The issue is that I am forced to redirect back to trainingProgram which drops the data coming back from the api.
Is there any way to reference actions from other routes without losing functionality? I'm sure I can copy the action to each route that wants to use it, but that seems super redundant.
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 currently have a resource
trainingProgram
that can have manyexerciseEvent
s.Exercise events can be viewed and created from the
exerciseEvent
route as well as from thetrainingProgram
route.As of now, the
trainingProgram
route simply references the form component and the action in theexerciseEvent
route.The action returns the payload from the api for success/failure messages. The issue is that I am forced to redirect back to
trainingProgram
which drops the data coming back from the api.Is there any way to reference actions from other routes without losing functionality? I'm sure I can copy the action to each route that wants to use it, but that seems super redundant.
Beta Was this translation helpful? Give feedback.
All reactions