From 55bc2791053c7352f0b70f7a1db9417ec5c75d02 Mon Sep 17 00:00:00 2001 From: Tenari Date: Mon, 31 Jul 2023 07:19:27 -0500 Subject: [PATCH] stop wiping bedrock on-load --- desks/realm/app/bedrock.hoon | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/desks/realm/app/bedrock.hoon b/desks/realm/app/bedrock.hoon index 8306665a9f..130414dc08 100644 --- a/desks/realm/app/bedrock.hoon +++ b/desks/realm/app/bedrock.hoon @@ -46,20 +46,20 @@ ++ on-load |= old-state=vase ^- (quip card _this) - ::=/ old !<(versioned-state old-state) + =/ old !<(versioned-state old-state) :: REMOVE WHEN YOU WANT DATA TO ACTUALLY STICK AROUND - =/ default-state=state-0 *state-0 + ::=/ default-state=state-0 *state-0 :: make sure the relay table exists on-init - =. tables.default-state - (~(gas by *^tables) ~[[%relay *pathed-table] [%vote *pathed-table] [%react *pathed-table]]) + ::=. tables.default-state + ::(~(gas by *^tables) ~[[%relay *pathed-table] [%vote *pathed-table] [%react *pathed-table]]) :: do a quick check to make sure we are subbed to /updates in %spaces =/ cards - :- [%pass /selfpoke %agent [our.bowl dap.bowl] %poke %db-action !>([%create-initial-spaces-paths ~])] - :- [%pass /selfpoke %agent [our.bowl %api-store] %poke %api-store-action !>([%sync-to-bedrock ~])] :: ALSO REMOVE WHEN YOU STOP WIPING THE DATA EVERY TIME + :: :- [%pass /selfpoke %agent [our.bowl dap.bowl] %poke %db-action !>([%create-initial-spaces-paths ~])] + :: :- [%pass /selfpoke %agent [our.bowl %api-store] %poke %api-store-action !>([%sync-to-bedrock ~])] :: ALSO REMOVE WHEN YOU STOP WIPING THE DATA EVERY TIME ?: (~(has by wex.bowl) [/spaces our.bowl %spaces]) ~ [%pass /spaces %agent [our.bowl %spaces] %watch /updates]~ - [cards this(state default-state)] + [cards this(state old)] :: ++ on-poke |= [=mark =vase]