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

Stops working when I refresh browser #306

Open
paule89123 opened this issue Sep 3, 2020 · 0 comments
Open

Stops working when I refresh browser #306

paule89123 opened this issue Sep 3, 2020 · 0 comments

Comments

@paule89123
Copy link

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 :)

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