Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(next): cleans up initReq #10449

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

jacobsfletch
Copy link
Member

@jacobsfletch jacobsfletch commented Jan 8, 2025

The req property returned from initReq does not include the user as expected, and instead returns user and i18n separately (and in the case of i18n, duplicately). This function was also unnecessary instantiating a new local req object just to override the url and query properties. Instead of doing this, we can simply create a new instance of this object and modify necessary properties without mutating the original instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant