Search params start and end date validation
Hi there, im implementing search params for filters and i want to make sure the start date is before the end date. in zod i can do something like this
But this doesn't work with the fallback since it would fall after the fallback.
3 Replies
metropolitan-bronzeOP•11mo ago
Would this be a nice work around?
probable-pink•11mo ago
what should be the fallback behavior if start is not before end?
metropolitan-bronzeOP•11mo ago
already made a work around for now, i switch the endDate with startDate if it becomes before the startDate.
Really appreciate your work on Tanstack router and especially the quick responses on Discord and Github of the team.