Ensure store does initial resync

This commit is contained in:
Lea Anthony
2021-01-25 21:02:36 +11:00
parent d923e84456
commit 95a95d1750

View File

@@ -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 {