wip: remove runner on hook and then update docs

This commit is contained in:
Jonathan Kelley committed 2022-01-02 02:15:04 -05:00
1 parent 7d41a16208
commit d1560450ba
95 files changed
+1339 -675

No files matched your search

+3 -3
View File
@@ -46,7 +46,7 @@ fn manual_diffing() {
#[test]
fn events_generate() {
static App: Component = |cx| {
let count = cx.use_hook(|_| 0, |f| f);
let count = cx.use_hook(|_| 0);
let inner = match *count {
0 => {
@@ -105,7 +105,7 @@ fn events_generate() {
#[test]
fn components_generate() {
static App: Component = |cx| {
let render_phase = cx.use_hook(|_| 0, |f| f);
let render_phase = cx.use_hook(|_| 0);
*render_phase += 1;
cx.render(match *render_phase {
@@ -221,7 +221,7 @@ fn components_generate() {
#[test]
fn component_swap() {
static App: Component = |cx| {
let render_phase = cx.use_hook(|_| 0, |f| f);
let render_phase = cx.use_hook(|_| 0);
*render_phase += 1;
cx.render(match *render_phase {