I have the following problem - when I hit the back button and I have a form on the previous page, it is loaded with old values (it appears from session) and not new values coming from database, even if I explicitly set $this->whatever property to equal a value from the database.
It loads the form with up-to-date values only if I refresh the browser window manually (F5). Why is this behaviour and how can I resolve it so that if I go one step back it loads the form with correct values from database? Here is an example of my mount() method:
public function mount(Job $job)
{
$this->job = $job;
$this->type = $this->job->is_recurring ? 'recurring' : 'onetime';
$this->isFlexible = $this->job->is_flexible;
P.S. I also noticed that if I add a dd() statement at the beginning of the mount() method as well it doesn;t take it into account unless I refresh the whole page again with F5.