You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But how to map that value to props? We could just map the value to the same prop key, which would require an additional check props[key] instanceof Error, or we could extend the mergeProps function to also pass and error argument that the user could map to props as they desire, something like (we could attach the key to the error for convenience):
constmergeProps=(ownProps,firebaseProps,error)=>({error: 'There was an error reading '+error.key+' Firebase said: '+error.message})
Activity
simenbrekken commentedon Aug 1, 2017
@gmaclennan I've taken a stab a this in https://github.com/unfold/react-firebase/tree/merge-props-error-handling if you'd like to give it a try. There's no docs yet but the added tests should be understandable enough.
simenbrekken commentedon Aug 28, 2017
Are you still tracking this @gmaclennan or should we go ahead without your input?