Best Practice for useForm in complex Modals & Filtering? #2055
SagarNaliyapara
started this conversation in
Polls
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it a good practice to use useForm with modals and drawers? I understand it results in two requests (POST for action, then GET to refresh data). Is this approach efficient, or is there a better alternative? 🤔
On a complex filtering page, I'm considering storing filters in session using POST, then having the GET request detect the session and return filtered records. Or should I just use axios to get filtered data? I want a clean URL with no filter data. Should I stick with useForm for this or is axios better?
I love useForm and trying to avoid usage axios if possible, but is this a good approach or it could cause issues?
7 votes ·
Beta Was this translation helpful? Give feedback.
All reactions