Skip to content

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Sep 9, 2025

Issue

Noticed in #7293

Description

The recursion detection middleware should be specific to Node.js, and it currently checks for options.runtime at runtime. This is okay in it's current state, as it only checks for environment variables.

We're adding a new dependency in #7293 which uses Node.js specific async_hooks. Since this is a import level, there should be no-op in browser and react-native

Testing

CI


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr marked this pull request as ready for review September 9, 2025 17:34
@trivikr trivikr requested a review from a team as a code owner September 9, 2025 17:34
@trivikr trivikr merged commit 9484757 into main Sep 9, 2025
6 checks passed
@trivikr trivikr deleted the middleware-recursion-detection branch September 9, 2025 20:03
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants