# Pastebin Oc8J9RK4 sub get-state($default?, :$name = UUID.new.Str) is rw is export { my $store = $*UI-APP.obj.store; with $default -> $value { $store.assoc-in: $name, :$value; $store.tick; } Proxy.new( FETCH => sub ($) { .{$name} = True with %*UI-PATHS; $store.get-in: $name }, STORE => sub ($, $value) { $store.assoc-in: $name, :$value } ) }