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

Rusiłko zrobił zadanie! #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Rusiłko zrobił zadanie! #4

wants to merge 1 commit into from

Conversation

cichaczem
Copy link
Owner

No description provided.

},

requestStudentEnrollment(student) {
var that = this;
Copy link
Owner Author

Choose a reason for hiding this comment

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

There's no need to do that. _receivedStudentEnrollmentSuccess should be accessible.

Copy link
Collaborator

Choose a reason for hiding this comment

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

it's not accessible :(

Copy link
Collaborator

Choose a reason for hiding this comment

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

But I don't like this piece of code too.
I just don't want the arrow functions all inside the then(...) callback

@lesniakania
Copy link
Collaborator

Apart from the thing we already talked about (defining methods in methods) everything looks fine.
You could move all behaviours related to toggling to the Enroll component, but I think it's not a big deal, it should be just a move and it should work, so probably not worth spending time.

As it comes to redirect, we with @cichaczem agreed on passing callbacks to creators - see here and here.

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.

3 participants