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

How to tell when less is loaded? #140

Open
Smudded opened this issue May 1, 2018 · 0 comments
Open

How to tell when less is loaded? #140

Smudded opened this issue May 1, 2018 · 0 comments

Comments

@Smudded
Copy link

Smudded commented May 1, 2018

I'm using the the less-loader in my project, and due to some interesting circumstances I care about the height of my app when it first renders. Unfortunately, when the app finishes its first render the styles have not yet loaded. It doesn't seem there's a way to tell when the styles have loaded and store that state within my app so I can delay any kind of measuring I do. I've attempted importing the less file and checking the resulting object, but it seems to be empty. I may just be looking in the wrong places, but any suggestions would be appreciated!

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

No branches or pull requests

1 participant