slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
592 stars 129 forks source link

route.settings property return null in RouterObserver #664

Open rahmanrezaee opened 7 months ago

rahmanrezaee commented 7 months ago

Describe the bug I try to observer the route changes and I have to use RouteObserver which gives me to listen when the user push or pop and replacement but I'm not able to get the value of route.settings object property and return null but strange is that while a print toString it returns value in the correct format

**Beamer version: v1.6.1

To Reproduce Steps to reproduce the behavior:

  1. Make a RouteObserver
  2. and override a method of them like didPush
  3. and print('${route.settings.name}'); // its return null instead current URL like '</>'
  4. See debugs

Expected behavior it must return the value of the URL and argument

Screenshots image image image

Desktop:

rahmanrezaee commented 6 months ago

any update? @timshadel

stan-at-work commented 4 months ago

any update? @timshadel

Hey, is this still an issue?

I will look in to it.

Make sure you set your name parameter when your creating your beamPages