Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gene-next): routing - handle start and error in $routeChanged observable #57

Conversation

matzimowski
Copy link
Contributor

@matzimowski matzimowski commented Feb 10, 2025

Issues

  • $routeChanged notifies only about changed route, there was no info if this change already started (so it's in progress) or an error happened.
  • payload.currentPathname returns wrong value

Changes

  1. Fix: payload.currentPathname - it used to return the first char of the path string, instead of the whole path
  2. Feat: Handle routeChangeStart and routeChangeError router events

@matzimowski matzimowski changed the title (gene-next) - routing - handle start and error in $routeChanged observable fix and feat (gene-next) - routing - handle start and error in $routeChanged observable Feb 10, 2025
@matzimowski matzimowski changed the title fix and feat (gene-next) - routing - handle start and error in $routeChanged observable feat(gene-next): routing - handle start and error in $routeChanged observable Feb 10, 2025
@matzimowski matzimowski force-pushed the (gene-next)---routing---handle-start-and-error-in-$routeChanged-observable branch from dbfc1b8 to 000fa49 Compare February 10, 2025 21:02
@matzimowski matzimowski marked this pull request as ready for review February 10, 2025 21:10
@matzimowski matzimowski requested a review from krzotki February 10, 2025 21:12
@matzimowski matzimowski merged commit 4348c60 into master Feb 11, 2025
20 checks passed
@matzimowski matzimowski deleted the (gene-next)---routing---handle-start-and-error-in-$routeChanged-observable branch February 11, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants