@tldraw/state
Advanced tools
Comparing version 2.0.0-canary.f1f706f0b652 to 2.0.0-canary.f21eaeb4d803
@@ -15,3 +15,3 @@ import { FunctionComponent } from 'react'; | ||
* | ||
* console.log(name.value) // 'John' | ||
* print(name.value) // 'John' | ||
* ``` | ||
@@ -358,3 +358,3 @@ * | ||
* if (isUninitialized(prevValue)) { | ||
* console.log('First time!') | ||
* print('First time!') | ||
* } | ||
@@ -529,3 +529,3 @@ * return count.value * 2 | ||
* react('greet', () => { | ||
* console.log(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* print(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* }) | ||
@@ -551,3 +551,3 @@ * | ||
* react('greet', () => { | ||
* console.log(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* print(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* }) | ||
@@ -575,3 +575,3 @@ * | ||
* react('greet', () => { | ||
* console.log(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* print(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* }) | ||
@@ -623,3 +623,3 @@ * | ||
* react('log name changes', () => { | ||
* console.log(name.value, 'was changed at', unsafe__withoutCapture(() => time.value)) | ||
* print(name.value, 'was changed at', unsafe__withoutCapture(() => time.value)) | ||
* }) | ||
@@ -745,3 +745,3 @@ * | ||
* whyAmIRunning() | ||
* console.log('Hello', name.value) | ||
* print('Hello', name.value) | ||
* }) | ||
@@ -748,0 +748,0 @@ * |
{ | ||
"name": "@tldraw/state", | ||
"description": "A tiny little drawing app (state).", | ||
"version": "2.0.0-canary.f1f706f0b652", | ||
"version": "2.0.0-canary.f21eaeb4d803", | ||
"packageManager": "yarn@3.5.0", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -357,3 +357,2 @@ import { times } from 'lodash' | ||
const test = new Test(seed) | ||
// console.log(test.systemState) | ||
for (let i = 0; i < NUM_OPS_PER_TEST; i++) { | ||
@@ -360,0 +359,0 @@ test.tick() |
@@ -47,3 +47,3 @@ import { ArraySet } from './ArraySet' | ||
* | ||
* console.log(name.value) // 'John' | ||
* print(name.value) // 'John' | ||
* ``` | ||
@@ -50,0 +50,0 @@ * |
@@ -42,3 +42,3 @@ import { attach, detach } from './helpers' | ||
* react('log name changes', () => { | ||
* console.log(name.value, 'was changed at', unsafe__withoutCapture(() => time.value)) | ||
* print(name.value, 'was changed at', unsafe__withoutCapture(() => time.value)) | ||
* }) | ||
@@ -138,3 +138,3 @@ * | ||
* whyAmIRunning() | ||
* console.log('Hello', name.value) | ||
* print('Hello', name.value) | ||
* }) | ||
@@ -141,0 +141,0 @@ * |
@@ -29,3 +29,3 @@ /* eslint-disable prefer-rest-params */ | ||
* if (isUninitialized(prevValue)) { | ||
* console.log('First time!') | ||
* print('First time!') | ||
* } | ||
@@ -32,0 +32,0 @@ * return count.value * 2 |
@@ -146,3 +146,3 @@ import { _Atom } from './Atom' | ||
* react('greet', () => { | ||
* console.log(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* print(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* }) | ||
@@ -168,3 +168,3 @@ * | ||
* react('greet', () => { | ||
* console.log(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* print(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* }) | ||
@@ -192,3 +192,3 @@ * | ||
* react('greet', () => { | ||
* console.log(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* print(`Hello, ${firstName.value} ${lastName.value}!`) | ||
* }) | ||
@@ -195,0 +195,0 @@ * |
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
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
419760
7358