mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
metadata-pull-hook: move watches to +on-init
This commit is contained in:
parent
f4b378cd2e
commit
b527e6ea3d
@ -129,20 +129,18 @@
|
|||||||
met ~(. mdl bowl)
|
met ~(. mdl bowl)
|
||||||
hc ~(. +> bowl)
|
hc ~(. +> bowl)
|
||||||
::
|
::
|
||||||
++ on-init on-init:def
|
++ on-init
|
||||||
|
:_ this
|
||||||
|
:~ watch-invites:hc
|
||||||
|
watch-contacts:hc
|
||||||
|
watch-store:hc
|
||||||
|
==
|
||||||
|
::
|
||||||
++ on-save !>(state)
|
++ on-save !>(state)
|
||||||
++ on-load
|
++ on-load
|
||||||
|= =vase
|
|= =vase
|
||||||
=+ !<(old=state-zero vase)
|
=+ !<(old=state-zero vase)
|
||||||
:_ this(state old)
|
`this(state old)
|
||||||
%- zing
|
|
||||||
:~ ?: (~(has by wex.bowl) [/invites our.bowl %invite-store]) ~
|
|
||||||
~[watch-invites:hc]
|
|
||||||
?: (~(has by wex.bowl) [/contacts our.bowl %contact-store]) ~
|
|
||||||
~[watch-contacts:hc]
|
|
||||||
?: (~(has by wex.bowl) [/store our.bowl %metadata-store]) ~
|
|
||||||
~[watch-store:hc]
|
|
||||||
==
|
|
||||||
::
|
::
|
||||||
++ on-poke
|
++ on-poke
|
||||||
|= [=mark =vase]
|
|= [=mark =vase]
|
||||||
|
Loading…
Reference in New Issue
Block a user