You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when calling $this->reset() the variable users is set to null but I expect it to reset to an empty array. This is how reset() should work or do I miss something.
Steps To Reproduce
state(['users' => []]);
$createNew = function () { $this->reset() };
<button wire:click="createNew">Reset</button>
The text was updated successfully, but these errors were encountered:
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?
Volt Version
1.6.5
Laravel Version
10.48.22
PHP Version
8.3
Database Driver & Version
mysql
Description
I have a simple state defined with
state(['users' => []])
when calling
$this->reset()
the variableusers
is set to null but I expect it to reset to an empty array. This is howreset()
should work or do I miss something.Steps To Reproduce
state(['users' => []]);
$createNew = function () { $this->reset() };
<button wire:click="createNew">Reset</button>
The text was updated successfully, but these errors were encountered: