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?
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?