Next.js Discord

Discord Forum

Reduce toolkit with nextjs & app router

Unanswered
Torymid wasp posted this in #help-forum
Open in Discord
Avatar
Torymid waspOP
I am new to UI, My application is opening an iframe with following return url -> http://www.url.com/base-component/somepath?action=success

In the routing component i have written onload useeffect to dispatch an action which updates the value of search param (i.e. action) into state.

I am reading this value in my component where I have integrated iframe using useSelector. (Base-component)

The value is printed in routing component but dispatch doesn't update the state and flow is not returned to /base-component.

Here my routing component is not a child component and does that makes it out of scope of redux state.

Can someone suggest a way to get control back to base-component ?

0 Replies