YahooArchive / fluxible-router

MOVED TO FLUXIBLE REPO
104 stars 26 forks source link

Required context `getStore` was not specified in `RouteHandlerStoreConnector`.' #53

Closed mmahalwy closed 9 years ago

mmahalwy commented 9 years ago

Getting error:

WARN: 'Warning: Failed Context Types: Required context `getStore` was not specified in `RouteHandlerStoreConnector`.'

When testing a component wrapped in handleRoute()

How can I get by this?

Thanks!

mridgway commented 9 years ago

This is most likely a owner vs parent context issue. Are you using react-router? Also, how are you wrapping your app level component to provide it context?

mmahalwy commented 9 years ago

No I am using fluxible-router with my component wrapped in handleRoute

The solution was to do provideContext in my tests...