From 95a95d175011e03f6bd2e37522eab8b394c42ce0 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 25 Jan 2021 21:02:36 +1100 Subject: [PATCH] Ensure store does initial resync --- v2/internal/runtime/store.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2/internal/runtime/store.go b/v2/internal/runtime/store.go index 9c603bb2..78d2e85c 100644 --- a/v2/internal/runtime/store.go +++ b/v2/internal/runtime/store.go @@ -146,9 +146,13 @@ func (s *Store) setupListener() { // Resetting the curent data will resync s.resync() }) + + // Do initial resync + s.resync() } func (s *Store) resync() { + // Stringify data newdata, err := json.Marshal(s.data.Interface()) if err != nil {