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

[refactor] convert to render functions #104

Merged
merged 14 commits into from
Jun 30, 2019
Merged

[refactor] convert to render functions #104

merged 14 commits into from
Jun 30, 2019

Conversation

logaretm
Copy link
Contributor

@logaretm logaretm commented Jun 26, 2019

This PR aims to convert Hooper components to Render fns for the following reasons:

  • performance tweaking: allows for more optimizations for infinite-slide mode.
  • easier composition: no need to expose internal data/methods on the hooper instance related to rendering.
  • better update handling as current implementation jitters whenever the template updates due to "manual" handling of the update hook which in turn triggers more updates.

So far I managed to convert the current features to render-fns, I plan to do a few optimizations before this PR is ready.

A Positive side effect of this PR is when no slides are present like in #99 the slider should still work fine.

closes #99

closes #71

@logaretm logaretm marked this pull request as ready for review June 30, 2019 10:08
@logaretm logaretm requested a review from ismail9k June 30, 2019 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants