Replies: 1 comment 5 replies
-
|
Can you share the code for the widget that triggers the bottom sheet too? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we have this structure:
The button works as expected when you open the sheet for the first time.
But once you dismiss it and reopen the sheet again. The Signal was already disposed since everything inside the sheet that used to be the subscriber are all disposed. And Signal auto dispose itself by default, the UI lost its reactiveness at this point. If you click the button, nothing changes on UI. Only after you close the sheet and reopen again, the UI get updated.
For new developers in Flutter land like myself, this could be really confuisng. I only figured it out by adding the logger to the config. Before that, I've spent several hours trying to identify the issue.
For use cases like this, should we have a section in the document to indicate how to correctly handle ViewModel based injected signal usage? Or is it possible to handle this inside the solidart library itself?
Beta Was this translation helpful? Give feedback.
All reactions