will `sheet.update` recalculate styles for every call?
Open
complexity:low
docs
- Dominant language
- JavaScript
- Stars
- 7.1k
- Forks
- 386
- PR merge metrics
- No merged PRs in 30d
Description
_From @Rabinzon on July 3, 2018 18:45_
we have a lot of styles like this, so I gonna use `function-values`
```js
const getLabelStyle = _.memoize(isMobileOrTablet =>
({
paddingRight: isMobileOrTablet ? 16 : 2,
...
}));
```
What if I'll call sheets.update(data) for every render? will It recalculate styles for every update?
Sorry If information about this exists in docs, but I didn't found.
_Copied from original issue: cssinjs/react-jss#268_
Contributor guide
Assessment
This issue has not been assessed yet.