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

Factor reflex creation and reflex data management out of channel #486

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

julianrubisch
Copy link
Contributor

@julianrubisch julianrubisch commented Apr 8, 2021

Refactor

Description

Basically most of the attributes derived from the data hash passed to receive have been factored out to an own ReflexData class. Furthermore the logic for actually creating the reflex has been moved to a ReflexFactory.

Why should this be added

This not only makes the class more readable but will also facilitate discussions about what part of it should be public API in an upcoming plugin system

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

Please note that the best way to suggest changes or updates to the documentation is to join Discord and leave a note in the #docs channel. Any documentation updates posted as PRs cannot be accepted at this time. ❤️

@julianrubisch julianrubisch changed the title Restructure receive Factor reflex creation and reflex data management out of channel Apr 8, 2021
@julianrubisch julianrubisch marked this pull request as ready for review April 8, 2021 09:00
@leastbad leastbad merged commit 680efc1 into stimulusreflex:master Apr 28, 2021
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