Effect CommunityEC
Effect Community9mo ago
1 reply
Tim Smart

Breaking Change in Effect-Rx: Update to `Rx.fn` Context Object

Hello @1110198784417345608 ,

Another small breaking change for effect-rx, Rx.fn now receives a slightly different context object Rx.FnContext.

This guards against the foot gun where you could subscribe to other Rx's causing the function to rerun.

Some other changes:
- Rx.runtime.addGlobalLayer for adding tracer layers etc (https://github.com/tim-smart/effect-rx?tab=readme-ov-file#adding-global-layers-to-rxruntimes)
- Rx.searchParam now supports schemas (https://github.com/tim-smart/effect-rx?tab=readme-ov-file#integration-with-search-params)

effect
Was this page helpful?