[improvement] Migrations (#217)

* Add better migrations

* Improves migrations

* rename dev to example

* renames migrate

* Removes workers from git

* Remove rogue dependency

* Fix dropdown navigation by keyboard
This commit is contained in:
Steve Ruiz 2021-11-04 15:48:39 +00:00 committed by GitHub
parent cb777c85d1
commit fe2e3c81fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 516 additions and 271 deletions

View file

@ -0,0 +1,14 @@
import * as React from 'react'
import { TLDraw } from '@tldraw/tldraw'
export default function ChangingId() {
const [id, setId] = React.useState('example')
React.useEffect(() => {
const timeout = setTimeout(() => setId('example2'), 2000)
return () => clearTimeout(timeout)
}, [])
return <TLDraw id={id} />
}