Replies: 2 comments 2 replies
-
@RukshanJS Can you try using the StateProvider component for doing this? It gives you access to the current state of ReactiveBase, which can then be used in a controlled fashion to set the state of a relevant component. |
Beta Was this translation helpful? Give feedback.
-
Ok so I have some progress. I have used the |
Beta Was this translation helpful? Give feedback.
-
I have a screen (say screen A) where Reactive Search is working fine to get some Books let's say. I have 2 filter fields (MULTILIST) with values as follows.
What I need to get done,
On another screen (say screen B), I can click a button
Preset1
which hasgenre
ascomic
,yearPublished
as1950-2000
associated with it. When I click this, I want to navigate to screen A, and apply the valuescomic
togenre
and1950-2000
toyearPublished
, and re-render the ReactiveList.How can I update the redux store/ set the filters from a component outside the scope of ReactiveBase component?
P.S. => I could do this using a component under the ReactiveBase component (using SelectedFilters and its setValue prop), but have problems doing this from a component outside ReactiveBase (because the two screens are in different routes)
Beta Was this translation helpful? Give feedback.
All reactions