Douglas Armstrong

Results 145 comments of Douglas Armstrong

Yeah, I like the idea of including the live example in the repro and website. We also have a "playground" that demonstrates some concepts that we should polish up and...

This looks similar to #317, and we have a proposed implementation in #319 for a `map()` method for atoms/selectors which allow inline derived state. Super convenient. The problem there is...

Prototype started by @alanasim, some feedback remaining.

HTML text inputs manage their own state. So, using Recoil state for them causes the two to conflict and the cursor behaviour that you observed. React supports using React state...

Note we are investigating garbage collection, so old unused atoms in a family would get cleaned up. But, that is not yet available. You should not re-create an atom when...

Symbols won't work for keys as they would not persist across multiple executions and `WeakMap` isn't sufficient for this use case. Something like [`FinalizationRegistry`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry) would be really convenient. Unfortunately, it...

It should be in the nightly branch. There isn't a formal way to enable the feature flags with the open source build yet. But, if you're up for testing it...

As was mentioned, this can currently be addressed via intermediate selectors from #314. Though, it makes sense to improve the API for this without intermediate selectors. API options to consider:...

@FokkeZB If you just want to read a value of an atom/selector without subscribing to it then you can use `useRecoilCallback()`.