Skip to content

Conversation

joshreisner
Copy link
Contributor

apologies for the flurry of PRs

this one gets us incrementally closer to #357 by replacing the setInput method of setting input with react router's navigate method

this reverses the flow of state. whereas before the flow would be:

  1. user selects "morning"
  2. Dropdown calls setInput from the InputProvider
  3. input then cascades down to the FilterProvider and UI
  4. as a side effect, query params are updated

now the flow is:

  1. user selects "morning"
  2. Dropdown navigates to the desired URL
  3. InputProvider detects the change from useSearchParams
  4. input cascades down to the FilterProvider and UI

@joshreisner joshreisner requested a review from gkovats September 1, 2025 17:19
@joshreisner joshreisner self-assigned this Sep 1, 2025
Copy link

netlify bot commented Sep 1, 2025

Deploy Preview for tsml-ui ready!

Name Link
🔨 Latest commit c253867
🔍 Latest deploy log https://app.netlify.com/projects/tsml-ui/deploys/68b5d5a1c79bda0008288673
😎 Deploy Preview https://deploy-preview-468--tsml-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@joshreisner joshreisner merged commit 7aea772 into main Sep 4, 2025
6 checks passed
@joshreisner joshreisner deleted the use-react-router-for-navigation branch September 4, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants