Dynamic url param in useForm['Create'] resource #6328
-
Hey Refine Team, I wanted to bring up an interesting topic for discussion. Right now, I have an ugly solution (haha). It works, but I'd like to know if there’s a better way to achieve it within the framework's boundaries. Here’s the context: I have a create form where a post is connected as a child through a URL parameter: /parents/${parent_id}/childs. I need to update this URL based on the selected ID from the form. Here’s what I’m currently doing:
Do you think there's a more efficient way to handle this? I do think there should be an option to change url before send, but haven't found yet elegant way. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @w20k, Yes, it doesn't look great, but it's correct for Refine's current state. We're planning improvements in Refine@5, including custom actions and type support for nested paths. Thank you very much for your use case! |
Beta Was this translation helpful? Give feedback.
Hello @w20k,
Yes, it doesn't look great, but it's correct for Refine's current state. We're planning improvements in Refine@5, including custom actions and type support for nested paths.
Thank you very much for your use case!