How to pass form data when using replaceMountedAction()
Hi,
I've created a header action with a form that replaces itself with another action. I need help passing the form data from the first action to the second. I've reviewed the docs and read up on passing $data and $arguments, but I can't get it to work.
The goal is for the first action to appear as a modal where the user can enter search terms. When entered, those keywords are passed as part of $data to the next action that is mounted so I can show the user their keywords.
Can anyone help me figure this out.
I've provided the relevant code here.
1 Reply
After some trial and error, this gave me the result, I am looking for, but it doens't look like an ideal solution.