File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
examples/with-rematch/shared/utils Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,12 @@ const getOrCreateStore = (initStore, initialState) => {
2323export default ( ...args ) => Component => {
2424 // First argument is initStore, the rest are redux connect arguments and get passed
2525 const [ initStore , ...connectArgs ] = args
26+ // Connect page to redux with connect arguments
27+ const ConnectedComponent = connect . apply ( null , connectArgs ) ( Component )
2628
2729 const ComponentWithRematch = ( props = { } ) => {
2830 const { store, initialProps, initialState } = props
2931
30- // Connect page to redux with connect arguments
31- const ConnectedComponent = connect . apply ( null , connectArgs ) ( Component )
32-
3332 // Wrap with redux Provider with store
3433 // Create connected page with initialProps
3534 return React . createElement (
You can’t perform that action at this time.
0 commit comments