focal
focal copied to clipboard
Program user interfaces the FRP way.
### what was done: - migrate `LiftWrapper` to PureComponent - move `LiftWrapper` logic to namespace - slight refactor Render{One,Many} - eliminate double re-render (because of setState) - bonus: added focal...
It's a second attempt to move Atom/Lens-only version into a separate package. Package @grammarly/focal-atom now contains only atoms/lenses-related code, without any dependency on React. @grammarly/focal keeps the same interface but...
This will allow `Atom.create` clients to provide a custom implementation of equality check explicitly, instead of having an `equals` method on the value. This can be useful when we want...
I was just curious how you guys implement persisting data to a backend. Being able to update a global data store locally is great, but how do you persist these...
Closes #69 Supersedes #70
I love the concept of `Atom` and wish I could use it on non-React projects. Unfortunately, using this library forces me to pull in all of React to compile.
Due to the way `setKey` is written, the original prototype is forgotten. This means all of the functions disappear as well. https://github.com/grammarly/focal/blob/281b70f294b7fe44a9ac362ea39272da07319a36/packages/focal/src/utils.ts#L7-L19
Quick fix for the CodeSandbox that missing `@babel/runtime` dependency