Skip to content

fix(remix): Move hook checks inside the wrapper component.#5371

Merged
AbhiPrasad merged 1 commit intomasterfrom
onur/fix-remix-router-check
Jul 6, 2022
Merged

fix(remix): Move hook checks inside the wrapper component.#5371
AbhiPrasad merged 1 commit intomasterfrom
onur/fix-remix-router-check

Conversation

@onurtemizkan
Copy link
Collaborator

withSentryRouteTracing is called on root.tsx which runs before entry.client.tsx (where Sentry.init for browser is called and remixRouterInstrumentation is assigned).

The check if the provided hooks are available was failing silently, and causing withSentryRouteTracing to early return the App unwrapped.

This PR ensures that validation runs on the client side, after entry.client.tsx.

@onurtemizkan onurtemizkan added this to the Sentry Remix SDK milestone Jul 6, 2022
@onurtemizkan onurtemizkan self-assigned this Jul 6, 2022
@AbhiPrasad AbhiPrasad merged commit 1e3ba37 into master Jul 6, 2022
@AbhiPrasad AbhiPrasad deleted the onur/fix-remix-router-check branch July 6, 2022 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants