Skip to content
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

Refactor "currentTicket" recoil state logic #168

Open
victorzheng02 opened this issue Dec 20, 2023 · 0 comments
Open

Refactor "currentTicket" recoil state logic #168

victorzheng02 opened this issue Dec 20, 2023 · 0 comments

Comments

@victorzheng02
Copy link
Collaborator

Currently currentTicket and allTickets are not connected. After we make an updated, we call setAllTickets, we should expect this to update the currentTicket as well. Refactor currentTicket to depend on setAllTickets, or find a different way to store this state (we can pull the current ticket from the location.pathname, and filter to find it from the list of allTickets).

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

No branches or pull requests

1 participant