Skip to content

Race condition when writing directions content #5959

Closed
@hlfan

Description

@hlfan

URL

afaict only in development environments

How to reproduce the issue?

  1. Set your location with the dev tools if wanted/needed
  2. Search in OSM for a place near the location
  3. Activate the "show location" feature
  4. Click the directions button to "Find directions between two points"

The output gets written immediately, since the endpoints are close.
Only later (since it's not cached) does Rails respond with the contents of directions/search.html.erb.
So, since the #directions_content div wasn't there when the instructions were meant to be written, it remains blank.

Screenshot(s) or anything else?

No response

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