getx icon indicating copy to clipboard operation
getx copied to clipboard

Why GetX 5 with nested navigation will remove previous route and delete its controller

Open Ssiswent opened this issue 1 year ago • 1 comments

When I go from /main/groupInfo to /main/groupInfo/chatInfo, the /main/groupInfo route will be removed and then "GroupInfoController" onDelete() called.

I think maybe there is something wrong

image

image

Ssiswent avatar Aug 22 '24 07:08 Ssiswent

And then this will make another error: Form /main/chatInfo to /main/chatInfo/sharedGroups, REMOVING ROUTE /main/chatInfo, and then Instance "ChatInfoController" has been created, but now Get.parameters has been changed for SharedGroupsPage and doesn't have ['cid'], so the error appeared: image

image

image

image

Ssiswent avatar Aug 22 '24 08:08 Ssiswent

How to solve it, it's strange to switch routes like this.

axu6705 avatar Dec 26 '24 02:12 axu6705