qlevar_router icon indicating copy to clipboard operation
qlevar_router copied to clipboard

Wrong path selection

Open gabriel-gheorghe opened this issue 1 year ago • 0 comments

Consider the following scenario:

QRoute(
      path: '/schedule',
      name: schedule,
      builder: () => const ScheduleView(),
    ),
QRoute(
      path: '/scheduleDetailed',
      name: scheduleDetailed,
      builder: () => const ScheduleDetailedView(),
    ),

First time you switch your view to "schedule", it shows the "ScheduleView", correct. Second time you switch to "schedule", it shows the "ScheduleDetailedView", wrong.

My temporary fix: I replaced '/scheduleDetailed' path with '/detailed' and now '/schedule' path works fine everytime I switch to it.

gabriel-gheorghe avatar Apr 05 '23 16:04 gabriel-gheorghe