DevLog Day 9 - olindner/LightDisc GitHub Wiki
- Researched React debugging tools to help with inspecting AsyncStorage
- Going to try Reactotron
- Used this to install Reactotron on Macintosh
- Also installed via npm
- Had to edit Podfile in /ios:
:hermes_enabled => false,
- Decided the best way to keep global data (score, course, etc) and also update components was using Context and Providers, rather than using props passed back and forth
- Tried to set this up, but ran into repeated issues of variables not staying updated and resetting on rerender
- Considering switching back to just using AsyncStorage on each page
- Realizing I might not need to keep track of deviceId, maybe only when exporting (tbd)
- Updating storage to be:
{ "recentCourseId": "Recent Course", "courseId": [ {"score": 5, "timestamp": "2023-04-01T12:00:00Z"}, ] }
- Considering stopping tracking courseId too and just focusing on MVP to simplify