3 ms·
Seems very similar to what I have been using for a while now: https://github.com/jorbuedo/react-reactive-var https://github.com/jorbuedo/react-reactive-var. I r
by undefinedzero 4y ago
Seems very similar to what I have been using for a while now: https://github.com/jorbuedo/react-reactive-var https://github.com/jorbuedo/react-reactive-var. I reckon that library is based on the reactive vars in Apollo client, but without the unnecessary GraphQL code. Reactive vars are great to work with, the implementation is only a few lines of code, it is very predictable, and it doesn't require monkey patching your React internals.