re-frame

Quentin Le Guennec 2024-11-13T09:22:59.626049Z

Are subscriptions in non-reactive contexts still cached ? I remember that there was a proposal no avoid caching them, but I’m not sure if it has been adopted or not.

p-himik 2024-11-13T09:28:24.128169Z

Still the case, yes.

Quentin Le Guennec 2024-11-13T09:32:08.630499Z

damn, aright.

Kimo 2024-11-13T10:44:29.377109Z

Re-frame alpha has a solution for that

Kimo 2024-11-13T10:49:22.375479Z

Documentation isn't complete, but I'm happy to help if you want to try it out. https://day8.github.io/re-frame/api-re-frame.alpha/ https://github.com/day8/re-frame/issues/680#issuecomment-1676487563

Quentin Le Guennec 2024-11-13T11:22:42.372859Z

Thanks @kimo741, I saw that already. I’m just unsure to go for it since it’s alpha. Do you know if it has been successfully used in production?

Kimo 2024-11-13T11:36:37.557999Z

I'm maintaining a production app with it now, although it doesn't use the alpha features very heavily.

Kimo 2024-11-13T11:38:25.923199Z

re-frame.alpha is a drop-in replacement for re-frame.core

Kimo 2024-11-13T11:40:54.908849Z

All the same api is in place. IMO, it's stable, as long as all your namespaces are switched to (:require [re-frame.alpha]).

Kimo 2024-11-13T11:41:29.952389Z

The only weirdness I found so far is with the argument to a signal function - map instead of vector.

Quentin Le Guennec 2024-11-13T12:53:08.713919Z

I see, will try it out, thank you!