Hi,
In the app I'm currently working on I have an effect: (rf/reg-fx :fetch fetch). This effect is used in many places and not simple to change.
I would like to start using https://github.com/superstructor/re-frame-fetch-fx side-by-side with our current :fetch .
The problem is the naming conflict on :fetch in the re-frame-fetch-fx and our internal.
Is there a smooth way to solve this?
Three options:
• Don't use the library, implement only the stuff that you need on your own
• Use it, require its namespace, call (re-frame.core/clear-fx :fetch) and register your own :fetch
• Vendor the library in (the license is very permissive) and modify it in-place
Can I do 2 reliably?
Pretty sure that yes. Namespaces are loaded only once in CLJS, so that reg-fx in the library won't be re-executed.