mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 15:13:25 +03:00
Merge branch 'lf/md-hook-reload'
This commit is contained in:
commit
f2f2f24000
@ -7,6 +7,9 @@
|
|||||||
|= force=?
|
|= force=?
|
||||||
:~ [%pass /gall %arvo %g %goad force ~]
|
:~ [%pass /gall %arvo %g %goad force ~]
|
||||||
==
|
==
|
||||||
|
+$ state
|
||||||
|
$@ ~
|
||||||
|
[%0 ~]
|
||||||
--
|
--
|
||||||
|_ =bowl:gall
|
|_ =bowl:gall
|
||||||
+* this .
|
+* this .
|
||||||
@ -31,8 +34,13 @@
|
|||||||
++ on-fail on-fail:def
|
++ on-fail on-fail:def
|
||||||
++ on-init on-init:def
|
++ on-init on-init:def
|
||||||
++ on-leave on-leave:def
|
++ on-leave on-leave:def
|
||||||
++ on-load on-load:def
|
++ on-load
|
||||||
|
|= =vase
|
||||||
|
=+ !<(old=state vase)
|
||||||
|
?^ old `this
|
||||||
|
[(goad &) this]
|
||||||
|
::
|
||||||
++ on-peek on-peek:def
|
++ on-peek on-peek:def
|
||||||
++ on-save on-save:def
|
++ on-save !>([%0 ~])
|
||||||
++ on-watch on-watch:def
|
++ on-watch on-watch:def
|
||||||
--
|
--
|
||||||
|
@ -34,12 +34,15 @@
|
|||||||
^- agent:gall
|
^- agent:gall
|
||||||
|_ =bowl:gall
|
|_ =bowl:gall
|
||||||
+* this .
|
+* this .
|
||||||
def ~(. (default-agent *agent:gall %|) bowl)
|
def ~(. (default-agent this %|) bowl)
|
||||||
++ on-init on-init:def
|
++ on-init on-init:def
|
||||||
++ on-save !>(state)
|
++ on-save !>(state)
|
||||||
++ on-load
|
++ on-load
|
||||||
|= =vase
|
|= =vase
|
||||||
=+ !<(old=versioned-state vase)
|
=/ m-old=(unit versioned-state)
|
||||||
|
(mole |.(!<(versioned-state vase)))
|
||||||
|
?~ m-old `this
|
||||||
|
=* old u.m-old
|
||||||
|^
|
|^
|
||||||
?: ?=(%2 -.old)
|
?: ?=(%2 -.old)
|
||||||
`this
|
`this
|
||||||
|
Loading…
Reference in New Issue
Block a user