Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context doesn't seem to always work #112

Open
sbkn opened this issue Mar 24, 2017 · 1 comment
Open

Context doesn't seem to always work #112

sbkn opened this issue Mar 24, 2017 · 1 comment

Comments

@sbkn
Copy link

sbkn commented Mar 24, 2017

So I'm trying to use react-bluekit with redux-form, which utilizes context to propagate a decorated component and it's props to children.

I've wrapped the whole <BlueKit/> component in a connected form and rendering the initial view works flawlessly. When going to any specific component via sidebar though, context seems to get lost and redux-form throws at

if (!context._reduxForm) {
   throw new Error('Field must be inside a component decorated with reduxForm()');
}

How comes?

@ondrejbartas
Copy link
Contributor

This is strange behaviour. Bluekit has no router insideso context should stay without any changes. Have you tried for example crete component with displaying context? And if it works? We are using bluekit inside of redux provider without any problems. And that should be same use case as you have it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants