Shivamyadav's avatar

Props does not gets cleared in inertia ?

In my projects / Index component i have this code and when I search anything and get's the expected result and try to navigate back to the same projects/ index url on i had searched earlier the input search component get's clear and even also from the url params.

my code

The main issue comes here in the Notifications / Index component I was expecting the same behaviour but did not get the input cleared.

  1. The url search query gets removed but the input search has the searched value.
  2. Event using the smae approach for the both components.

my code

Is there anything I am missing ?

1 like
2 replies
vincent15000's avatar

When you say navigate back, is it with the back button in the browser or do you navigate back using a button on the web page ?

Shivamyadav's avatar

My sidebar navigation button. Notificationss tab on which I am already

1 like

Please or to participate in this conversation.