Skip to content

Conversation

@tasmail
Copy link

@tasmail tasmail commented Feb 9, 2025

That is needed to update controls on the view with the values that are corresponding to the route data, that was passing. E.g.
page.go(/home/prodcut#prodcut_id=1)
page.go(/home/prodcut#prodcut_id=2)
Init will not be called for the product_id=2

That is needed to update controls on the view with the values that are corresponding to the route data, that was passing.
E.g.
page.go(/home/prodcut#prodcut_id=1)
page.go(/home/prodcut#prodcut_id=2)
Init will not be called for the product_id=2
@fasilwdr
Copy link
Owner

Please check logs

Future exception was never retrieved
future: <Future finished exception=NameError("name 'mode' is not defined")>
Traceback (most recent call last):
File "/usr/local/python/3.12.1/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.12.1/lib/python3.12/site-packages/flet/core/page.py", line 903, in wrapper
handler(*args)
File "/workspaces/Flet-Model/src/flet_model/router.py", line 80, in _handle_route_change
mode.init()
^^^^
NameError: name 'mode' is not defined. Did you mean: 'model'?
Future exception was never retrieved
future: <Future finished exception=NameError("name 'mode' is not defined")>
Traceback (most recent call last):
File "/usr/local/python/3.12.1/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.12.1/lib/python3.12/site-packages/flet/core/page.py", line 903, in wrapper
handler(*args)
File "/workspaces/Flet-Model/src/flet_model/router.py", line 80, in _handle_route_change
mode.init()
^^^^
NameError: name 'mode' is not defined. Did you mean: 'model'?
Future exception was never retrieved
future: <Future finished exception=NameError("name 'mode' is not defined")>
Traceback (most recent call last):
File "/usr/local/python/3.12.1/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/python/3.12.1/lib/python3.12/site-packages/flet/core/page.py", line 903, in wrapper
handler(*args)
File "/workspaces/Flet-Model/src/flet_model/router.py", line 80, in _handle_route_change
mode.init()
^^^^
NameError: name 'mode' is not defined. Did you mean: 'model'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants