Skip to content

On browser refresh you get 2 api calls - Router issue #436

Description

@martinbryant

Description

When the app first loads/browser is refreshed on any page that requires data, you will see that a duplicate call to the server is made when looking at the Network tab in the browser dev tools

Expected behaviour

Only 1 api call is made

Actual behaviour

2 api calls are made

Related information

I have narrowed it down to the UrlChanged msg in Index.fs is being called on first load/browser refresh which is causing the call to be made twice. Pre SAFE v5 this did not happen.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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