Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple renders keeps the previous state When I render multiple views as components, they keep the state of previous arguments passed to them instead of reinitialize with default value each render. #577

Open
fadrian06 opened this issue Apr 24, 2024 · 0 comments
Labels

Comments

@fadrian06
Copy link
Contributor

Steps to reproduce the behavior:

Flight::render('myComponent', ['var1'=>1]);
Flight::render('myComponent', [ ]); // $var1 is still 1

Expected behaviour
Each render clean previous vars.

Environment:

  • OS: Windows
  • Browser: Firefox 62
  • PHP Version: 8.2.18
  • Flight Version: 3.8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant