Skip to content

Stops working when I refresh browser #306

Open
@paule89123

Description

@paule89123

Some background to the issue... I'm using React and I'm calling ElementQueries.init() from within the component that contains the divs I need to style. This works initially, but when I refresh the page, it stops working. Curiously, when I navigate to another page (causing my component to unmount) and then navigate back to the original page (causing my component to remount), it works again. (When I say it works I mean the styling gets applied).

So the issue only happens when I refresh. Any ideas what's causing this?

Also I tried calling ElementQueries.init() from my App.js file but for some reason my styling doesn't get applied when I call it from. Again, not sure why this is.

Any help would be greatly appreciated :)

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