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

TodoMVC example doesn't put selected class on footer buttons #107

Merged
merged 2 commits into from
Aug 4, 2019

Conversation

deklanw
Copy link
Contributor

@deklanw deklanw commented Jun 10, 2019

(As far as I could tell)

I'm not sure if my way of implementing it is optimal, but it works. It was my time doing anything with Turbine, so I'm open to correction.

I could have probably kept the filterItem function but I think it's better being explicit in this case since it's only 3 buttons.

@paldepind
Copy link
Member

(As far as I could tell)

You're right.

Thee implementation looks great to me 👍.

I could have probably kept the filterItem function but I think it's better being explicit in this case since it's only 3 buttons.

I think you should put filterItem back in. I think it made things more clear, shorter, and demonstrated the practice of separating things into small components. If you'd update the PR with filterItem I'd love to merge this PR 😄

@deklanw
Copy link
Contributor Author

deklanw commented Aug 2, 2019

@paldepind

Reinstated. But, I still think there's something wrong here. The typechecking is broken because of the string interpolation on the output. Seems like there should be a better way.

@paldepind
Copy link
Member

@deklanw

But, I still think there's something wrong here. The typechecking is broken because of the string interpolation on the output. Seems like there should be a better way.

Yes, I agree. IMO the problem is that filterItem calls output on its own component. It's both confusing and not typesafe. I'll merge the PR as is (the problem was there before) and then I'll take a stab at fixing the problem.

@paldepind paldepind merged commit c82e53b into funkia:master Aug 4, 2019
@paldepind
Copy link
Member

Thank a lot for the PR @deklanw. It's really nice to get this fixed 😄

@paldepind paldepind mentioned this pull request Aug 10, 2019
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