Comparing version 0.4.31 to 0.4.32
@@ -141,2 +141,3 @@ "use strict"; | ||
context_unsubs = []; | ||
const track = reactive_box_1.untrack(); | ||
try { | ||
@@ -149,2 +150,3 @@ instance = | ||
finally { | ||
track(); | ||
const unsubs = context_unsubs; | ||
@@ -151,0 +153,0 @@ context_unsubs = stack; |
{ | ||
"name": "realar", | ||
"version": "0.4.31", | ||
"version": "0.4.32", | ||
"description": "React state manager", | ||
@@ -30,3 +30,3 @@ "repository": { | ||
"dependencies": { | ||
"reactive-box": "0.6.x" | ||
"reactive-box": ">=0.6.2 <=0.6.x" | ||
}, | ||
@@ -89,3 +89,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4cbe32d9b59f6e6f246e0f1ccd097d327e81e0e6" | ||
"gitHead": "2d988c48876ccb2a355e68d36acdd7fb43f77d65" | ||
} |
@@ -36,11 +36,11 @@ # Realar | ||
- __Shared instances decomposition__. The pattern for decomposing applications logic to separate independent or one direction dependent modules. Each module can have its own set of reactive values. (logic isolation, ssr, comfort “mock” mechanism for simple unit testing) | ||
- __Shared stateful logic decomposition__. The pattern for decomposing applications logic to separate independent or one direction dependent modules. Each module can have its own set of reactive values. (logic isolation, ssr, comfort “mock” mechanism for simple unit testing) | ||
- __Lightweight and Fast__. Really light ~ 2kb. And only those components are updated in which it is really necessary to make changes and only they. | ||
- __React component context level scopes__. Declaration one scope and use as many reactive values as you want without the need to define a new React context for each changeable value. | ||
- __Actions__ are a necessary part of reactive communication, well knows for most javascript developers. Possibility for subscribing to action, call action, and wait for the next action value everywhere on the code base. | ||
- __React component context level scopes__. Declaration one scope and use as many reactive values as you want without the need to define a new React context for each changeable value. | ||
### Usage | ||
@@ -47,0 +47,0 @@ |
import React, { Context, FC } from 'react'; | ||
import { expr, box, sel, transaction } from 'reactive-box'; | ||
import { expr, box, sel, transaction, untrack } from 'reactive-box'; | ||
@@ -200,2 +200,3 @@ export { | ||
context_unsubs = []; | ||
const track = untrack(); | ||
try { | ||
@@ -207,2 +208,3 @@ instance = | ||
} finally { | ||
track(); | ||
const unsubs = context_unsubs; | ||
@@ -209,0 +211,0 @@ context_unsubs = stack; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43974
648
Updatedreactive-box@>=0.6.2 <=0.6.x