Skip to content

chore: migrate to valtio state - #119

Open
dai-shi wants to merge 5 commits into
mainfrom
chore/migrate-to-valtio-state
Open

chore: migrate to valtio state#119
dai-shi wants to merge 5 commits into
mainfrom
chore/migrate-to-valtio-state

Conversation

@dai-shi

@dai-shi dai-shi commented Jun 12, 2021

Copy link
Copy Markdown
Member

This PR is to use valtio instead of zustand. It tries to keep the difference small for now.
We could organize actions and hooks in store.js in the future.
(I was originally hoping to use useProxy macro, but wasn't able to work with vite. not sure why.)

@vercel

vercel Bot commented Jun 12, 2021

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pmndrs/racing-game/Hm8kuFapYjQVYPcbZ3NMNYij8xgi
✅ Preview: https://racing-game-git-chore-migrate-to-valtio-state-pmndrs.vercel.app

@promontis

Copy link
Copy Markdown

@dai-shi could you elaborate why you are migrating to valtio instead of zustand?

@dai-shi

dai-shi commented Jun 22, 2021

Copy link
Copy Markdown
Member Author

See #117.

Code would be simplified. Could optimize re-renders. (assuming humans make mistakes in manual render optimization.)

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.

3 participants