Closed fones closed 6 years ago
I have just found that you are using your own redux inside, and my component is connected to your store.
Any way to use redux in my case?
The reactivesearch Provider
is over-writing the store in the context in case of nesting. @metagrover check out the example app I built with reactivesearch and redux at https://github.com/divyanshu013/reactivesearch-redux-example. The app will work if the ReactiveBase
component here is moved to the top level (and surround the Provider
). However in such cases, the Reactivesearch components won't receive the context object correctly from the ReactiveBase
.
One possible solution I see here is that we pass the store
object explicitly in Reactivesearch (not via context
) which will prevent interference with the context in any user app. What do you think?
yes, exactly my thoughts. We can maybe use combineReducers
here to achieve this. Will test it with your app here!
Thanks @fones, fixed the issue on dev
branch. The fix should be out in the coming release 👍
Released in v2.2.1
🎉
Issue Type: I think this is a BUG.
Description: When trying to dispatch actions from a component that is rendered inside ReactiveList#onData, given action is not reaching reducers and redux store.
Code:
Minimal reproduction of the problem with instructions:
Reactivesearch version: 2.2.0
Browser: all
Anything else: Actions dispatched from components outside reactive components are working properly.