-
Notifications
You must be signed in to change notification settings - Fork 479
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
Javascript Rendered Apps (React, Angular) #57
Comments
Is there any workaround for forcing this re-init already? |
I attempted triggering a resize event in hope that it would re-calculate and apply styles, but to no avail. I'm going to try using walk at some point, passing the universal selector into document.querySelector() when grabbing dom elements, but I imagine this will be very performance heavy. |
I got flexibility to work for our react components by adding:
unfortunately our flex layout was too much for flexibility right away (several layers nested) It sort-of worked, but failed to handle |
I apologize for resurrecting this but has there been any headway on this in the 2.x release? If not, what is the officially suggested way of using this in a React app? |
Bump... |
Any Update? |
Same issue as here, but I'm using React. This will be a common issue for most Js rendered apps.
So requiring in the file automatically runs a function that goes through all the DOM elements and adds the various fallback styles, and giving you access to window.flexibility.
We need to be able to recalculate or re-run the self invoking function when we re-render areas of the site. .walk and .init doesn't really work as we won't always know the elements to render due to app's dynamic nature, and we should really be able to just define with -js-display: flex.
Ideally we would also be able to assign flexibility as a variable and use it when we need to, not whenever we require it and have it as a global variable.
E.g.
The text was updated successfully, but these errors were encountered: