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

Fixed unused kwargs in reflex.App #3170

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

Snaipergelka
Copy link
Contributor

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Fixed kwargs sio and socket_app are not used during reflex.App initialization

Closes #3081

Lendemor
Lendemor previously approved these changes Apr 26, 2024
Copy link
Collaborator

@masenf masenf left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution and tracking down that mysterious bug!

I have a couple of suggestions to improve the patch. The team has been wondering if exposing the sio externally is a good idea (yes it was documented, via generated docs), or if we should just expose the parameters as configuration knobs, like cors_allowed_origins.

For now, I'm leaning toward allowing the user to supply their own AsyncServer object.

reflex/app.py Show resolved Hide resolved
reflex/app.py Outdated Show resolved Hide resolved
@Snaipergelka
Copy link
Contributor Author

Updated patch in commit. Made socket_app local variable (deleted from the reflex.App args) and added check for async_mode=asgi for custom sio in reflex.App.

@picklelo picklelo merged commit 4b6a7ff into reflex-dev:main Apr 29, 2024
46 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.

Entering more than 999775 characters breaks text_area
4 participants