Feliz.Recoil
Feliz.Recoil copied to clipboard
Support for elmish with commands
Currently, I am seeing elmish is based on a simple elmish loop without commands. It would be nice if full elmish with commands are supported.
Yeah currently it's not elmish as much as the traditional React reducer pattern. I originally had full elmish support, but it's not quite compatible with Recoil and can lead to race condition issues. This is especially the case when React concurrent mode is released, which Recoil will be compatible.
They're currently working on a way to support effects within the context of Recoil that I'm hoping will solve this problem.
AtomEffects are released now, but I'll need to give it some thought as to how (if) this can be done. In the mean time this might help.