Skip to content

Commit 2e2535b

Browse files
committed
update deps
1 parent 5b13f4a commit 2e2535b

File tree

5 files changed

+1650
-1257
lines changed

5 files changed

+1650
-1257
lines changed

CHANGELOG.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,30 @@ It can also take a custom producer function where the function is passed a sette
2929
```js
3030
const clock = from(set => {
3131
const t = setInterval(() => set(1), 1000);
32-
return () => clearIntercal(t);
32+
return () => clearInterval(t);
3333
});
3434
```
3535

3636
> Note: Signals created by `from` have equality checks turned off to interface better with external streams and sources.
3737
3838
### `enableScheduling` (experimental)
3939

40-
By default Solid's concurrent rendering/Transitions doesn't schedule work differently and just runs synchronously. It's purpose is to smooth out IO situations like Navigation. However now you can opt into similar to React's behavior by calling this once at your programs entry. I've yet to see a realworld scenario where this makes a big difference but now we can do cool demos too and start testing it.
40+
By default Solid's concurrent rendering/Transitions doesn't schedule work differently and just runs synchronously. It's purpose is to smooth out IO situations like Navigation. However now you can opt into interruptible scheduling similar to React's behavior by calling this once at your programs entry. I've yet to see a realworld scenario where this makes a big difference but now we can do cool demos too and start testing it.
4141

4242
#### `startTransition`
4343

4444
Works like it's counterpart in `useTransition`, this useful when you don't need pending state.
4545

4646
```js
47-
import { startTransition } from "solid-js";
47+
import { createSignal, startTransition } from "solid-js";
4848

49-
function clickHandler(e) {
50-
startTransition(() => setSignal("Holla"));
49+
function App() {
50+
const [signal, setSignal] = createSignal("Howdy");
51+
function clickHandler(e) {
52+
startTransition(() => setSignal("Holla"));
53+
}
54+
55+
/* ...stuff */
5156
}
5257
```
5358

0 commit comments

Comments
 (0)