Skip to content

chore: remove unused React imports - #299

Merged
omegascorp merged 2 commits into
modelence:mainfrom
aadityakumarsah:fix/unused-react-imports
Jul 16, 2026
Merged

omegascorp merged 2 commits into
modelence:mainfrom
aadityakumarsah:fix/unused-react-imports

Conversation

@aadityakumarsah

@aadityakumarsah aadityakumarsah commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #298

Removed unused import React from 'react' in AppProvider.tsx, AppProvider.test.tsx, and queryProvider.tsx to optimize module resolution.


Note

Medium Risk
Auth middleware behavior change affects who can open WebSocket connections; React import edits are low risk.

Overview
Removes default React imports from AppProvider, queryProvider, and the AppProvider test in favor of named hooks/types only (modern JSX transform).

Socket.IO connection middleware no longer calls next() in a finally block after authenticate fails. On success it sets socket.data and calls next(); on failure it calls next(error) so invalid tokens reject the handshake instead of connecting with unset data. A unit test covers the rejection path.

Reviewed by Cursor Bugbot for commit b074857. Bugbot is set up for automated code reviews on this repo. Configure here.

@omegascorp
omegascorp self-requested a review July 16, 2026 14:55
@omegascorp omegascorp self-assigned this Jul 16, 2026

@omegascorp omegascorp left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also seems to fix the auth issue in the socket.io, looks good

@omegascorp
omegascorp merged commit 74589a5 into modelence:main Jul 16, 2026
3 checks passed
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.

chore: remove unused React imports

2 participants