This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Replies: 2 comments 3 replies
-
Also quite interested in this, as the solutions seem rather inelegant, and not straight forward. Since you asked this ~4 months ago, have you figured out anything more here? Is there more to your atomFamily than just: export const todosState = atomFamily<Todo, string>({
key: "todosState",
default: (id) => ({ id, text: "", done: "" }),
}); |
Beta Was this translation helpful? Give feedback.
1 reply
-
Note you can also use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I was wondering if you had any recommendations for handling normalised array state?
For example
I was thinking that I can synchronise changes with selectors, e.g. an insert selector which handles inserting at an index.
It's not particularly elegant, but just hoping to get some guidance on best practices
Beta Was this translation helpful? Give feedback.
All reactions