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
Hello guys, I'm working with nested resources in React Refine and need to pass additional data from a parent resource to a child resource. I want to avoid using URL parameters for this. Is there a recommended way to achieve this using React Refine's features or hooks?
Specifically, I'm looking for a solution that allows me to pass data as state when navigating to the child resource, similar to how useNavigate works in React Router. Is there an equivalent mechanism within React Refine, or do I need to implement a custom solution?
For instance, if I have a list of 'Projects' and each project has a list of 'Tasks', I want to pass the project's ID and name to the 'Tasks' resource when navigating from the 'Projects' list. I know I can pass the project ID in the URL, but how can I also pass the project name without using URL parameters?
( The reason for why I was trying to do this was to implement a solution for displaying the name of the associated project in the breadcrumb when we access the task inside. )
Any guidance or examples specific to React Refine would be great thanks in advance 😄
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
-
Hello guys, I'm working with nested resources in React Refine and need to pass additional data from a parent resource to a child resource. I want to avoid using URL parameters for this. Is there a recommended way to achieve this using React Refine's features or hooks?
Specifically, I'm looking for a solution that allows me to pass data as state when navigating to the child resource, similar to how useNavigate works in React Router. Is there an equivalent mechanism within React Refine, or do I need to implement a custom solution?
For instance, if I have a list of 'Projects' and each project has a list of 'Tasks', I want to pass the project's ID and name to the 'Tasks' resource when navigating from the 'Projects' list. I know I can pass the project ID in the URL, but how can I also pass the project name without using URL parameters?
( The reason for why I was trying to do this was to implement a solution for displaying the name of the associated project in the breadcrumb when we access the task inside. )
Any guidance or examples specific to React Refine would be great thanks in advance 😄
Beta Was this translation helpful? Give feedback.
All reactions