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

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

Open
martinbryant opened this issue Feb 16, 2024 · 0 comments
Open

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

martinbryant opened this issue Feb 16, 2024 · 0 comments

Comments

@martinbryant
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant