department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

[Spike] Update state management from ⚛️ Context to Jotai 👻 #70859

Open mateoclarke opened 9 months ago

mateoclarke commented 9 months ago

Right now, we're using plain ol' React Context to temporarily store app data between app pages and routes. This works ok but it also seems like there might be more elegant ways to handle app state with a 3rd party library like Jotai.

image I mean, look at that cute lil' ghost. Anyways...

This shouldn't take precedence over higher-priority work but a lil time to research and implement this now could save us some code cruft, performance, and dev experience cycles in the future.

rdvyas commented 8 months ago

Moving to backlog, other priority tickets have arisen.