Overriding capsules via dynamic dispatch (capsule providing another capsule) #62
-
Is it possible to override a capsule like it is in Dart? In order to be able to provide a project capsule that has to be used at lib level. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Yea, you just have to use the state side effect. The syntax may be a bit tricky to arrive at though, since you'd have to return |
Beta Was this translation helpful? Give feedback.
-
There is now a side effect that supports this use case in https://docs.rs/rearch-effects/latest/rearch_effects/fn.overridable_capsule.html |
Beta Was this translation helpful? Give feedback.
There is now a side effect that supports this use case in
rearch-effects
; check out theoverridable_capsule
effect!https://docs.rs/rearch-effects/latest/rearch_effects/fn.overridable_capsule.html