Comparing version 0.0.12 to 0.0.13-canary.65fac1f
@@ -18,3 +18,3 @@ /** | ||
* ```ts | ||
* cosnt name = atom('name', 'John') | ||
* const name = atom('name', 'John') | ||
* | ||
@@ -640,3 +640,3 @@ * console.log(name.value) // 'John' | ||
/** | ||
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrememtally compute the diff too. | ||
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrementally compute the diff too. | ||
* | ||
@@ -643,0 +643,0 @@ * You can use this function to wrap the return value of a computed signal function to indicate that the diff should be used instead of calculating a new one with [[AtomOptions.computeDiff]]. |
@@ -5,3 +5,3 @@ { | ||
"description": "A tiny little drawing reactive state management library.", | ||
"version": "0.0.12", | ||
"version": "0.0.13-canary.65fac1f", | ||
"author": "tldraw GB Ltd.", | ||
@@ -41,3 +41,2 @@ "license": "MIT", | ||
}, | ||
"gitHead": "f4641f847d91af543a10833dd48c7a197ce1e840", | ||
"module": "dist/index.mjs", | ||
@@ -44,0 +43,0 @@ "source": "src/index.ts", |
@@ -45,3 +45,3 @@ import { ArraySet } from './ArraySet' | ||
* ```ts | ||
* cosnt name = atom('name', 'John') | ||
* const name = atom('name', 'John') | ||
* | ||
@@ -48,0 +48,0 @@ * console.log(name.value) // 'John' |
@@ -48,3 +48,3 @@ /* eslint-disable prefer-rest-params */ | ||
/** | ||
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrememtally compute the diff too. | ||
* When writing incrementally-computed signals it is convenient (and usually more performant) to incrementally compute the diff too. | ||
* | ||
@@ -51,0 +51,0 @@ * You can use this function to wrap the return value of a computed signal function to indicate that the diff should be used instead of calculating a new one with [[AtomOptions.computeDiff]]. |
@@ -34,6 +34,6 @@ import { Child, Signal } from './types' | ||
/** | ||
* Detatch a child from a parent. | ||
* Detach a child from a parent. | ||
* | ||
* @param parent The parent to detatch from. | ||
* @param child The child to detatch. | ||
* @param parent The parent to detach from. | ||
* @param child The child to detach. | ||
*/ | ||
@@ -46,3 +46,3 @@ export const detach = (parent: Signal<any>, child: Child) => { | ||
// If the parent has no more children, then detatch the parent from its parents. | ||
// If the parent has no more children, then detach the parent from its parents. | ||
if (parent.children.isEmpty && isChild(parent)) { | ||
@@ -49,0 +49,0 @@ for (let i = 0, n = parent.parents.length; i < n; i++) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
302453