Skip to content

Commit 98cb1b5

Browse files
lamo2k123olegman
authored andcommitted
added render method (#2)
1 parent 192ec58 commit 98cb1b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export const hookRedux = ({ dispatch, server }) => ({
3535
dispatch(start({ path, location, isTransition: true }));
3636
},
3737
resolve: ({ route, status, params, redirect }) => {
38+
server && dispatch(end({ route, status, params, redirect, isTransition: false }));
39+
},
40+
render: ({ route, status, params, redirect }) => {
3841
dispatch(end({ route, status, params, redirect, isTransition: false }));
3942
},
4043
error: ({ error: err }) => {

0 commit comments

Comments
 (0)