Skip to content

How to tell when less is loaded? #140

Description

@Smudded

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions