Skip to content

Commit 1fd1616

Browse files
committed
Add_.memoize to Combine
1 parent 9b52a83 commit 1fd1616

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/combine.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
import merge from './merge';
44
import mixins from './transform-mixins';
5+
import _ from 'lodash';
56

6-
export const combine = (styles, customMixins) => {
7+
export let combine = (styles, customMixins) => {
78
const merged = merge(styles);
89
return mixins(merged, customMixins);
910
};
1011

12+
combine = _.memoize(combine);
13+
1114
export default combine;

0 commit comments

Comments
 (0)