Skip to content

Transitive re-renders on hovering same itinerary at different time #381

Open
@binh-dam-ibigroup

Description

@binh-dam-ibigroup

For batch routing, hovering between identical itineraries starting at different times triggers a render of each itinerary hovered. This is a subtle behavior that is not noticeable on the UI but may result in extra unnecessary computation.

For testing:

  • Checkout the Transitive styles #366 or more recent branch (the behavior exists on the dev branch prior to that nonetheless).
  • Add a console.log('Transitive render') statement at this line
  • Try this query
  • Hover between the two Walk-to-rail itineraries.
  • Observe the added console logs being printed.

A relevant approach and feedback are found here.

Screen Recording 2021-06-08 at 9 28 48 AM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions