You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have zero global variables for stylesheets, yet quite some changes depending on the device orientation and thus on media queries.
Therefore I am calling create() on every rotation. How should I memoize() stylesheets in such a situation not to recalculate same sheet many times or is it possible at all?
The text was updated successfully, but these errors were encountered:
After implementing orientation support in #9 portrait/landscape styles will be cached automatically.
Memoize is intended for cases when you create components dynamically with set of styles.
I have zero global variables for stylesheets, yet quite some changes depending on the device orientation and thus on media queries.
Therefore I am calling
create()
on every rotation. How should Imemoize()
stylesheets in such a situation not to recalculate same sheet many times or is it possible at all?The text was updated successfully, but these errors were encountered: