Skip to content

Commit 71a3d7d

Browse files
tushardhootprescottprue
authored andcommitted
Add predicate for react-auth-wrapper example (#58)
Needed for react-auth-wrapper to work properly with react-redux-firebase.
1 parent 8811cda commit 71a3d7d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ export const UserIsAuthenticated = UserAuthWrapper({
295295
wrapperDisplayName: 'UserIsAuthenticated',
296296
authSelector: ({ firebase }) => pathToJS(firebase, 'auth'),
297297
authenticatingSelector: ({ firebase }) => pathToJS(firebase, 'isInitializing') === true,
298+
predicate: auth => auth !== null,
298299
redirectAction: (newLoc) => (dispatch) => {
299300
browserHistory.replace(newLoc)
300301
dispatch({

0 commit comments

Comments
 (0)