steelsojka / aurelia-redux-plugin

A Redux plugin for the Aurelia framework
MIT License
17 stars 4 forks source link

Configuring store in configure function doesn't work as expected #10

Open jmezach opened 7 years ago

jmezach commented 7 years ago

I've been trying out this plugin, but I ran into an issue while following the documentation in the README. It suggests configuring the store during Aurelia's configuring function, however this doesn't work correctly because dispatching an event on the store yields an error stating dispatch isn't a function.

This is probably caused by the plugins configure function passing Aurelia's FrameworkConfiguration instance to the Store instance as can be seen here. I'm assuming the pluginConfig variable should be passed there instead of config.

Seems like an easy fix. I would be willing to submit a PR if necessary.