cssinjs / cssinjs/jss

will `sheet.update` recalculate styles for every call?

Open
#799 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.