Skip to content

Sentry Remix Causes Remix defer to fail in @remix-run/node@1.11.0 #6883

Closed

Description

@rubber-duck-software

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/angular

SDK Version

7.31.1

Framework Version

Remix 1.11.0

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

Use deferred data loading in Remix@1.11.0. The output shape when calling useLoaderData will be changed. (The data is under the "data" key instead of being the return value)

Expected Result

useLoaderData should return what was passed to defer

Actual Result

useLoaderData returns what was passed to defer wrapped in an object.

Activity

  1. lforst commented on Jan 20, 2023

    @lforst
    Contributor

    Hi, since the 1.11.0 Remix release is quite new we have to check for compatibility so stay tuned! We're tracking it here: #6888

  2. rubber-duck-software commented on Jan 20, 2023

    @rubber-duck-software
    Author

    Thanks for the quick response. Glad you guys are tracking this. Quick note on the nature of the issue: Here Sentry.init actually changes the behavior of Remix in a breaking way (I presume there is monkey patching or something involved). The issue is not that Remix 1.11.0 breaks Sentry, but rather Sentry breaks Remix 1.11.0.

  3. dmarkow commented on Jan 26, 2023

    @dmarkow

    This might be the same issue that I opened on Remix earlier this week (remix-run/remix#5211). If so, it's not related to Sentry (my reproduction was not using Sentry at all).

  4. HazAT commented on Feb 13, 2023

    @HazAT
    Member

    Related: #6888

  5. dwene commented on May 12, 2023

    @dwene

    I believe I am also running into this issue.

    Remix 1.15.0
    Latest @sentry/remix

  6. dwene commented on May 12, 2023

    @dwene
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