Skip to content

Refactor to use hooks #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Refactor to use hooks #457

wants to merge 10 commits into from

Conversation

joshreisner
Copy link
Contributor

@joshreisner joshreisner commented Jun 21, 2025

Closes #453

This PR is a major refactor for the internals of TSML UI

Instead of having a big state variable, this splits state up into specific conerns: input, filter, data, etc

Also we don't set query params directly anymore, we setInput and the InputProvider manages the query string

Much less prop drilling is needed now, so the APIs should be simpler

Still to do:

  • check near location / near me mode
  • improve test coverage

@joshreisner joshreisner self-assigned this Jun 21, 2025
Copy link

netlify bot commented Jun 21, 2025

Deploy Preview for tsml-ui ready!

Name Link
🔨 Latest commit e0bc539
🔍 Latest deploy log https://app.netlify.com/projects/tsml-ui/deploys/685b8ebf0e77520008169a17
😎 Deploy Preview https://deploy-preview-457--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.

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.

Hook Refactor Idea
1 participant