altjs / utils

A collection of utils for alt.js
37 stars 25 forks source link

decorator with makeHot function #12

Open darul75 opened 8 years ago

darul75 commented 8 years ago

Hi,

I was able to combine immutable and createStore decorators but is it possible to get makeHot utility also ?

I mean this one is fine:

import { createStore } from 'alt-utils/lib/decorators';
import immutable from 'alt-utils/lib/ImmutableUtil';

@createStore(alt)
@immutable
class MyStore

export default MyStore;

But how to do with makeHot wrapper :

import { createStore } from 'alt-utils/lib/decorators';
import immutable from 'alt-utils/lib/ImmutableUtil';
import makeHot  from 'alt-utils/lib/makeHot';

@makeHot
@createStore(alt)
@immutable
class MyStore

export default MyStore;

thanks,

jul

darul75 commented 8 years ago

oh or it looks like already done in createStore function now ?