Skip to content

loader doesn't run after redirects #1777

Closed

Description

@bagindo

Describe the bug

using the latest version, the loader with loaderDeps doesn't run initially.

the page needs to be reloaded for it to run.

Reproduction on version ^1.20.4 (✅ works fine)
https://stackblitz.com/edit/github-p2w83v-xh9id6

Reproduction on the latest version (^1.38.1) (❌ doesn't run initially)
https://stackblitz.com/edit/github-p2w83v-pz6euc

Your Example Website or App

https://stackblitz.com/edit/github-p2w83v-pz6euc

Steps to Reproduce the Bug or Issue

update to the latest version

Expected behavior

run initially, without having to reload the page.

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: 1.38.1

Additional context

No response

Activity

  1. changed the title [-]on the latest version: loader with loaderDeps doesn't run initially[/-] [+]loader with loaderDeps doesn't run initially[/+] on Jun 19, 2024
  2. bagindo commented on Jun 30, 2024

    @bagindo
    Author

    Hi @SeanCassiere I tracked down in which version this has stopped working.

    It's v1.36.3 on #1713 PR, in which the loader is not called after redirection. What's the reason behind this?

    I have a one page app, and I just want to redirect from the /index route to another route /esp with the today's date as the search param.

    Here's the minimal reproduction:
    v 1.36.2 (✅ works)
    v 1.36.3 (❌ undefined initially - but if the page is reloaded it works)

    I wrapped the app with React.StrictMode.
    If I removed the React.StrictMode wrapper, it does work on both versions.

  3. changed the title [-]loader with loaderDeps doesn't run initially[/-] [+]loader doesn't run initially after redirects[/+] on Jun 30, 2024
  4. changed the title [-]loader doesn't run initially after redirects[/-] [+]loader doesn't run after redirects[/+] on Jun 30, 2024
  5. schiller-manuel commented on Jul 6, 2024

    @schiller-manuel
    Collaborator
  6. added
    bug
    on Jul 11, 2024
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions