Skip to content

Helpers don't update if there are notFound routes (flow-router) #39

Description

@serkandurusoy

I'm using flow-router (with blaze-layout) and have a couple of routes.
I'm using the isActiveRoute helper within a dynamically rendered navigation template.

Given

  • I browse using the links in the nav
  • One of the links is broken
  • I enter a route (with helper to mark the nav link as active)
  • I click on the broken link (see the not found page, which uses the same navigation template)

I expect that the previous helper return false, but it continues returning active
In the meantime, ActiveRoute.name() for the same route return false as it should
At this point, it takes a few back and forth clicking between other nav links for the helper to pick up.
I don't know if this is a flow-router issue, or with the helper. I'll also cross-post it over at the flow-router repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions