File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ function connect<
602
602
? props . store !
603
603
: contextValue ! . store
604
604
605
- const getServerSnapshot = didStoreComeFromContext
605
+ const getServerState = didStoreComeFromContext
606
606
? contextValue . getServerState
607
607
: store . getState
608
608
@@ -738,8 +738,9 @@ function connect<
738
738
// TODO This is incredibly hacky. We've already processed the store update and calculated new child props,
739
739
// TODO and we're just passing that through so it triggers a re-render for us rather than relying on `uSES`.
740
740
actualChildPropsSelector ,
741
- // TODO Need a real getServerSnapshot here
742
- actualChildPropsSelector
741
+ getServerState
742
+ ? ( ) => childPropsSelector ( getServerState ( ) , wrapperProps )
743
+ : actualChildPropsSelector
743
744
)
744
745
} catch ( err ) {
745
746
if ( latestSubscriptionCallbackError . current ) {
You can’t perform that action at this time.
0 commit comments