Updating state properly
This commit is contained in:
parent
fe3dff8caa
commit
31f82d4ae3
@ -18,4 +18,4 @@ subscription.start();
|
|||||||
|
|
||||||
ReactDOM.render((
|
ReactDOM.render((
|
||||||
<Root />
|
<Root />
|
||||||
), document.querySelectorAll("#root")[0]);
|
), document.querySelectorAll("main")[0]);
|
||||||
|
@ -6,15 +6,14 @@
|
|||||||
$% [%0 state-0]
|
$% [%0 state-0]
|
||||||
==
|
==
|
||||||
+$ state-0 $:
|
+$ state-0 $:
|
||||||
[%access count=@]
|
access-counts=@
|
||||||
|
seen-urls=(set @t)
|
||||||
==
|
==
|
||||||
+$ card card:agent:gall
|
+$ card card:agent:gall
|
||||||
--
|
--
|
||||||
^- agent:gall
|
^- agent:gall
|
||||||
=* state :- %0
|
=| state-0
|
||||||
:*
|
=* state -
|
||||||
[%access count=0]
|
|
||||||
==
|
|
||||||
|^
|
|^
|
||||||
:: Main gall core
|
:: Main gall core
|
||||||
|_ bol=bowl:gall
|
|_ bol=bowl:gall
|
||||||
@ -59,7 +58,8 @@
|
|||||||
`this
|
`this
|
||||||
%browsermanager-action
|
%browsermanager-action
|
||||||
=/ action !<(action:browsermanager vase)
|
=/ action !<(action:browsermanager vase)
|
||||||
[(handle-action action) this]
|
=/ new-state state(access-counts (add 1 access-counts.state))
|
||||||
|
[(handle-action action) this(state new-state)]
|
||||||
==
|
==
|
||||||
++ on-save
|
++ on-save
|
||||||
~& 'on-save'
|
~& 'on-save'
|
||||||
|
Loading…
Reference in New Issue
Block a user