Skip to content

Refactor to use hooks and others features#36

Open
danilowoz wants to merge 8 commits intomasterfrom
feat/onload
Open

Refactor to use hooks and others features#36
danilowoz wants to merge 8 commits intomasterfrom
feat/onload

Conversation

@danilowoz
Copy link
Copy Markdown
Contributor

@danilowoz danilowoz commented May 1, 2020

Refactor

From now on, it uses hooks internally

onLoad event

Once a component has an image, we need to make sure that the image has loaded and to recalculate the grid. But it has been overwhelmed to manage the loading image out of the package, so in order to simplify the API, it would be a good idea to add events into the Snuggle.

Lazy-loading example

Solves #11 lazy loading issue.

@danilowoz danilowoz requested a review from pdrbrnd May 1, 2020 14:46
@danilowoz danilowoz changed the base branch from v2 to master August 24, 2020 12:54
@danilowoz danilowoz changed the title feat(event): on load image event Refactor to use hooks and others features Aug 24, 2020
@danilowoz
Copy link
Copy Markdown
Contributor Author

@pbrandone could you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant