Export bindActions function
See original GitHub issueHey,
My use case is the following: I have a library that uses Preact and exposes a public interface on the window
object. The library itself creates some components and allows the webpage to interact with them through functions on window.Library
.
For instance, calling window.Library.openDialog()
should render a Preact component.
I need to execute actions from that openDialog
function that is not connected to the store through a Connect
component. Effectively, I am looking for bound actions that I can run from outside the Preact/Redux zero environment.
I am thinking that you could export the bindActions
function and I can create those bound actions when I need to.
Any opinion on that? Let me know if you think there is a better approach to this.
Thanks a lot for this great library! Jawad
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
@jawadst could you please install the latest version and check if that’s what you wanted?
Ok, I’ll add them in on the next release.
Do this works for you @jawadst:
?