remix-forms icon indicating copy to clipboard operation
remix-forms copied to clipboard

Add `replace` prop to `Form`

Open kaciakmaciak opened this issue 3 years ago • 1 comments

Could we please add replace prop to Form so that we can be submitting forms (method GET) and replacing the history. A use case would be e.g. when we have filter forms where the URL changes but we don't want to keep all the filter changes in the history (navigation back).

We've temporarily fixed this by patching the package as follows:

Screen Shot 2023-04-11 at 4 59 53 PM

I'm happy to help with this if you give me green light.

Thanks.

kaciakmaciak avatar Apr 11 '23 05:04 kaciakmaciak

Hey, @kaciakmaciak! Yes, can you please send a PR? Thank you!

danielweinmann avatar Apr 11 '23 10:04 danielweinmann