Skip to content

Blocking resource with SsrMode::PartiallyBlocked doesn't work consistently #3048

@spencewenski

Description

@spencewenski

Describe the bug
SsrMode::PartiallyBlocked doesn't seem to block rendering as expected in 0.7 (main). Sometimes it works, but occasionally the suspense renders the fallback view instead.

Additionally, I noticed that the behavior seems to be the same as when the default ssr mode is used.

Leptos Dependencies

Reproduced on main with some minor modifications to the hackernews_axum example (in this commit)

To Reproduce
Steps to reproduce the behavior:

  1. Disable javascript in your browser
  2. Checkout my fork: git clone -b context-resource-startup https://github.com/spencewenski/leptos
  3. Run the hackernews_axum example
  4. Navigate to the example url (http://127.0.0.1:3000)
  5. Refresh the page a few times until only the Loading... fallback is displayed

Expected behavior
The stories content should always be displayed instead of the Loading... fallback.

Screenshots
2024-09-29-182348_1026x943

Additional context
Test on:

  • Firefox - 130.0.1
  • Arch linux - 6.10.10-arch1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions