wip: some docs and suspense

This commit is contained in:
Jonathan Kelley committed 2021-11-23 15:53:57 -05:00
1 parent bab21a0aa1
commit 93d4b8ca7c
22 files changed
+210 -252

No files matched your search

+20
View File
@@ -56,3 +56,23 @@ There's a few invariants that are very important:
- References to `ScopeInner` and `Props` passed into components are *always* valid for as long as the component exists. Even if the scope backing is resized to fit more scopes, the scope has to stay the same place in memory.
## Suspense
Suspense is done through combinators on values.
```rust
let name = get_name(cx).suspend();
rsx!(
div {
{name}
div {
div {
}
}
}
)
```