@tinijs/store
Version:
The state management module for the TiniJS framework.
12 lines • 372 B
JavaScript
export function Subscribe(store, stateKey, reactive = true) {
return function (prototype, propertyName) {
prototype.storeManager ||= { pending: [] };
prototype.storeManager.pending.push([
store,
stateKey || propertyName,
propertyName,
reactive,
]);
};
}
//# sourceMappingURL=decorators.js.map