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

Help With Dynamic Connected Logic in Multiple Files #96

Closed
bhuffman opened this issue Mar 9, 2019 · 1 comment
Closed

Help With Dynamic Connected Logic in Multiple Files #96

bhuffman opened this issue Mar 9, 2019 · 1 comment

Comments

@bhuffman
Copy link

bhuffman commented Mar 9, 2019

Before I put in full code samples, can anyone tell me if the Dynamic Connected Logic has been tested successfully with separate files for the various parts? Is there a trick to making it work if so?

I've been through the example and have things working if everything is inline in a single file, but as soon as I try to break out the sections (kea, connect, and each of the components) I get a silent failure. No errors, but the reducers are not being called and no state is being created at all. Actions are still firing, but no reducer.

I'm not 100% sure where to put the "OnlyData" DynamicLogic component, but have tried a few different places in the app to no avail.

Appreciate any help or guidance. Convinced my company to adopt Kea today (yay!!!), but this would be a bad time for me if I can't get this portion working.

@bhuffman
Copy link
Author

bhuffman commented Mar 9, 2019

Found the trick. When defining the "OnlyData" component, you have to pass the ID as a prop to the component for the key or it will fail silently.

@bhuffman bhuffman closed this as completed Mar 9, 2019
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

1 participant