Export connect directly, so it's more of a drop-in replacement for react-redux, i.e.
-import { connect } from 'react-redux';
+import { connect } from 'griddle-react';
Add static storeKey property, so default can be changed once app-wide
The storeKey story's ConnectedComponent was incorrectly using Griddle's connect; now it doesn't, and the demo works. (Bonus: demo's slightly prettier.)
Why these changes are made
I'm actually using this functionality now across an app, and it's a bit tedious.
Griddle major version
1.8+
Changes proposed in this pull request
Export
connect
directly, so it's more of a drop-in replacement forreact-redux
, i.e.Add static
storeKey
property, so default can be changed once app-wideThe
storeKey
story'sConnectedComponent
was incorrectly using Griddle'sconnect
; now it doesn't, and the demo works. (Bonus: demo's slightly prettier.)Why these changes are made
I'm actually using this functionality now across an app, and it's a bit tedious.