Comparing version 3.0.0 to 3.0.1
@@ -172,3 +172,3 @@ var __defProp = Object.defineProperty; | ||
let result, error; | ||
const atom = createAtom(() => autorun(computation), {name}); | ||
const atom = createAtom(() => autorun(computation, {name}), {name: "result:" + name}); | ||
function computation() { | ||
@@ -175,0 +175,0 @@ try { |
@@ -7,3 +7,3 @@ { | ||
"name": "quarx", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Simple dependency graph engine, MobX inspired", | ||
@@ -10,0 +10,0 @@ "main": "dist/index.js", |
@@ -11,3 +11,6 @@ import { createAtom, autorun } from './core'; | ||
const atom = createAtom(() => autorun(computation), { name }); | ||
const atom = createAtom( | ||
() => autorun(computation, { name }), | ||
{ name: 'result:' + name } | ||
); | ||
@@ -14,0 +17,0 @@ function computation() { |
19709
451