Recoilize
Recoilize copied to clipboard
support for atomFamily
Problem
As a user, I want to be able to see atomFamily states.
Solution
The only solution for now is for me to use atom() and create the underlying structure myself. It adds complexity for setting/retrieving the values.
Additional information
No response
๐จโ๐งโ๐ฆ Contributing
- [ ] ๐โโ๏ธ Yes, I'd love to make a PR to implement this feature!
After multiple restart of the app and chrome dev tools itself, it now appears. But it has double-quotes in the name. Is that expected?
export const inProgressState = atomFamily<boolean, string>({
key: "inProgress",
default: (id) => defaultById(id),
});
// ...
const [inProgress, setInProgress] = useRecoilState(inProgressState("userPreferences"));
// ...