Skip to content

[bug]: strange behaviour if fetching data in rsc #1007

Description

@ftognetto

Describe the bug

Hello and congrats for your library, it’s very helpful!
I was working with it today and after several hours I realized that if we fetch data directly in rsc (awaiting the promise) and pass down to the client component the data instead of the promise the data table does not render (it appears only if you do something manual like pressing a button) and the page remains stuck in loading.
I don’t know if this is something related to react and how the use hook works instead but I think the library shouldn’t change behaviour if I resolve the promise in the client or server component.
Thanks

How to reproduce

Take the official example, resolve the promises in the page.tsx and pass down the data instead of resolving them with Rect.use in the task data table component.

Link to reproduction

I will add a link soon!

Additional information

No response

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions