Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Aug 9, 2021
1 parent 5b13f4a commit 2e2535b
Show file tree
Hide file tree
Showing 5 changed files with 1,650 additions and 1,257 deletions.
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,30 @@ It can also take a custom producer function where the function is passed a sette
```js
const clock = from(set => {
const t = setInterval(() => set(1), 1000);
return () => clearIntercal(t);
return () => clearInterval(t);
});
```

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

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.
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.

#### `startTransition`

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

```js
import { startTransition } from "solid-js";
import { createSignal, startTransition } from "solid-js";

function clickHandler(e) {
startTransition(() => setSignal("Holla"));
function App() {
const [signal, setSignal] = createSignal("Howdy");
function clickHandler(e) {
startTransition(() => setSignal("Holla"));
}

/* ...stuff */
}
```

Expand Down

0 comments on commit 2e2535b

Please sign in to comment.