How to access the action return data in the component? #9119
-
I have 2 cases: Case 1: how to access the "action" method return data in the component?
I need to get the "created" json data which return from the "action" method and do some customize logic. For example, check the data condition to "navigate" to the other routes. Case 2: How pass the customize data when use the "redirect" method in the "action" method ?
Remix version: 2.8.1 If anyone can give some suggestion, very appreciate. Thank you so much. :) |
Beta Was this translation helpful? Give feedback.
Answered by
lili21
Mar 23, 2024
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gaojianzhuang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fetcher.data
.