Feliz.Recoil icon indicating copy to clipboard operation
Feliz.Recoil copied to clipboard

Support for elmish with commands

Open OnurGumus opened this issue 5 years ago • 2 comments

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.

OnurGumus avatar Aug 12 '20 10:08 OnurGumus

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.

Shmew avatar Aug 12 '20 14:08 Shmew

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.

Shmew avatar Nov 07 '20 23:11 Shmew