We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://stackblitz.com/edit/vitejs-vite-1zhh5q?file=src/App.tsx&terminal=dev
For updates correctly, I need to read data.length
const state: { data: string[]; filter: string } = { data: [], filter: '', }; const store = proxyWithComputed(state, { todos(s) { // If access data.length, it works // if (!s.filter && s.data.length) return s.data; if (!s.filter) return s.data; return s.data.filter((i) => !i.includes(s.filter)); }, });
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Looks like a bug that only happens with useSnapshot and computed object value.
Sorry, something went wrong.
Hi, would you try #436? https://ci.codesandbox.io/status/pmndrs/valtio/pr/436 Find "Local Install Instruction" ☝️
LGTM
Successfully merging a pull request may close this issue.
https://stackblitz.com/edit/vitejs-vite-1zhh5q?file=src/App.tsx&terminal=dev
For updates correctly, I need to read data.length
The text was updated successfully, but these errors were encountered: