Skip to content

Sentry for Remix overwrites root loader data #5553

Closed as not planned
Closed as not planned
@mattrigg9

Description

@mattrigg9

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/remix

SDK Version

7.9.0

Framework Version

18.2.0

Link to Sentry event

No response

Steps to Reproduce

Since Sentry 7.9.0, any data returned by the root loader is overwritten with an object with only sentryTrace and sentryBaggage attributes. Looking at this PR, appears these attributes were meant to be merged alongside the original loader response.

Expected Result

The root loader should return an object with the user's returned attributes, merged with Sentry wrapped attributes.

Actual Result

Returned data:
Screen Shot 2022-08-09 at 2 58 28 PM

useLoaderData() response:
Screen Shot 2022-08-09 at 2 58 46 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Package: remixIssues related to the Sentry Remix SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions