Omnistac / zedux

:zap: A Molecular State Engine for React
https://Omnistac.github.io/zedux/
MIT License
344 stars 7 forks source link

fix(atoms): make data retention consistent across `injectPromise` and `api(promise)` #65

Closed bowheart closed 1 year ago

bowheart commented 1 year ago

Description

injectPromise() currently clears the previous .data when the promise factory reruns. This is inconsistent with how query atoms work and isn't useful.

Make .data persist across reruns.