on master help sign in
state negotiation
43fa0f7Hunter Miller
desk/app/sphinx.hoon+11−15
@@ -11,6 +11,9 @@
11=>
11=>
12 |%
12 |%
13 +$ card card:agent:gall
13 +$ card card:agent:gall
14+ +$ edition
15+ $% state-0
16+ ==
14 +$ state-0
17 +$ state-0
15 $: %0
18 $: %0
16 =lookup:s
19 =lookup:s
@@ -44,21 +47,14 @@
44 [cards this]
47 [cards this]
45 ::
48 ::
46 ++ on-save !>(state)
49 ++ on-save !>(state)
47− ++ on-load
50+ ++ on-load
48− |= =vase
51+ |= =vase
49− ^- (quip card _this)
52+ ^- (quip card _this)
50− =/ old=(unit state-0)
53+ =/ old !<(edition vase)
51− (mole |.(!<(state-0 vase)))
54+ ?- -.old
52− ?^ old `this(state u.old)
55+ %0 `this(state old)
53− ~& >>> "Incompatible load, nuking"
56+ ==
54− =^ cards this on-init
55− :_ this
56− =- (welp - cards)
57− %+ turn ~(tap in ~(key by wex.bowl))
58− |= [=wire =ship =term]
59− ^- card
60− [%pass wire %agent [ship term] %leave ~]
61− ::
57+ ::
62 ++ on-poke
58 ++ on-poke
63 |= [=mark =vase]
59 |= [=mark =vase]
64 ^- (quip card _this)
60 ^- (quip card _this)
ui/src/pages/Post.tsx+1−1
@@ -30,7 +30,7 @@ export const Post = () => {
30 }
30 }
31 });
31 });
32
32
33− const { register, watch, reset, setValue, handleSubmit, formState } = form;
33+ const { register, watch, reset, setValue, handleSubmit } = form;
34
34
35 const updateImg = useRef(debounce(setImage));
35 const updateImg = useRef(debounce(setImage));
36 const img = watch('image');
36 const img = watch('image');