Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When wrapping with redux connect
an error is thrown because a prop named dispatch
is passed.
Error: Supplied prop/s "dispatch" are reserved for internal firebaseConnect() usage.
relivant react-redux-firebase code
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox or similar.
const Thing = () => <div />
const ThingContainer = compose(
connect(state => ({
itemId: itemIdSelector(state)
})),
firebaseConnect(({ itemId }) => {
return [`/items/${itemId}`]
})
)
export default ThingContainer(Thing)
What is the expected behavior?
I'm not familiar with why 'reserved props' are used in react-redux-firebase but it seems like a problematic idea. If a component does not need a prop, shouldn't it just ignore it? Maybe a warning at most? This is especially try of a HOC as they normally pass through props.
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
- react-redux-firebase v3.0.0-alpha.11