Improved useMatch to support search parameters#2683
Conversation
|
Looks good @LBrian - I was wondering though it people might want:
This would be the case when say, some UTMA or campaign or even timestamp params might be included in a path and thus might not match the target/specified location. |
Good callout @dthyresson
|
|
@dthyresson Tweaked, |
|
@LBrian These additions look good and I think give the useMatch much needed flexibility. I know the RW team likes to review naming, especially with core features like Router so I'd like to get their feedback on:
I also think that perhaps using the
One might match @mojombo @peterp could we get your view on the option names:
Thanks. |
Co-authored-by: David Thyresson <[email protected]>
Correct
Correct
Good idea! |
|
@jtoar @dthyresson @Tobbe Ready for review, I will find some time to update docs tomorrow. |
Co-authored-by: Tobbe Lundberg <[email protected]>
Co-authored-by: Tobbe Lundberg <[email protected]>
…nto router-use-match-query-params
Co-authored-by: Tobbe Lundberg <[email protected]>
Co-authored-by: Tobbe Lundberg <[email protected]>
Tobbe
left a comment
There was a problem hiding this comment.
Looks good to me, but I haven't tested it, only looked at the code.
|
Oh one more thing @LBrian - fancy adding the docs for this into https://github.com/redwoodjs/redwood/blob/main/packages/router/README.md#active-links ? This readme gets pulled into redwoodjs.com Let me know if you're happy to :), otherwise will add to my list. |
* 'main' of github.com:redwoodjs/redwood: Improved useMatch to support search parameters (redwoodjs#2683) Supports SDL and Scaffold generation for Float scalar types (redwoodjs#3218) Allow custom functions to serve binary data (redwoodjs#3219) Support Supabase phone and OTP auth (redwoodjs#3177)
|
Great work on this, everyone! And thanks again for your patience with us @LBrian 🚀 |
Yap, I will do that today! |
|
Hi @LBrian were you still available to work on the doc update? No pressure. Just let us know either way. |
Hi @thedavidprice, I got blocked by some |
|
@thedavidprice Updated doc in #3241 cc @dac09 |
Co-authored-by: Brian Liu <[email protected]> Co-authored-by: David Price <[email protected]>
Currently,
routeargument ofuseMatchcould potentially includes search parameters (akaqueryString) which causes path mismatchPR for
#1460
#2362 (the issue mentioned by @dthyresson )