@ellx/framework
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@ellx/framework", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Ellx full stack framework", | ||
@@ -5,0 +5,0 @@ "type": "module", |
import { autorun, batch, createAtom } from 'quarx'; | ||
import { isFlow, whenFinished } from 'conclure'; | ||
import { box } from 'quarx/box'; | ||
@@ -17,4 +18,16 @@ import { observableMap } from 'quarx/map'; | ||
function instantiate() { | ||
try { | ||
node.instantiate(); | ||
} | ||
catch (e) { | ||
if (isFlow(e)) { | ||
whenFinished(e, ({ cancelled }) => !cancelled && instantiate()); | ||
} | ||
set(e); | ||
} | ||
} | ||
const atom = createAtom( | ||
() => autorun(node.instantiate, { | ||
() => autorun(instantiate, { | ||
onError: set, | ||
@@ -21,0 +34,0 @@ name: `(Instantiate ${url})` |
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
36322
1041