MIT-CAVE / cave_static

A react based static web app to be used as a UI and data consumer for the CAVE app.
Apache License 2.0
0 stars 1 forks source link

Make special function for useCallback dispatch mutateLocal #509

Closed connor-makowski closed 2 months ago

connor-makowski commented 3 months ago

I noticed we have a lot of useCallback dispatch mutateLocal code in the app that could probably benefit from a unified function to simplify state modification in the app.

Thoughts on this?

mrkwanzaa commented 3 months ago

This would need to be a custom hook, but I can see how something like useMutateState could be cleaner and pretty easy to implement.