Skip to content

use of use() hook causes component to hang #2953

Closed

Description

@arackaf

Which project does this relate to?

Start

Describe the bug

Using use() causes the component to hang, and never resolve the suspense boundary

Your Example Website or App

https://github.com/arackaf/tanstack-start-test-1/tree/feature/broken-use-repro

Steps to Reproduce the Bug or Issue

Clone the repo above - note the branch! -- feature/broken-use-repro
npm i
Run TWO terminals. Do npm run server in one. Run npm run dev in the othder
hit http://localhost:3000/app/tasks

Navigating there as a client navigation runs fine. But refresh the page on that url. The outer page should render, but the suspense boundary should show indefinitely

Image

Expected behavior

See above

Screenshots or Videos

No response

Platform

n/a

Additional context

No response

Activity

  1. added a commit that references this issue on Dec 9, 2024
    3b16fb1
  2. added a commit that references this issue on Dec 9, 2024
    54dad5f
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions