diff --git a/core/docz-core/src/states/entries.ts b/core/docz-core/src/states/entries.ts index 5720d7756..7b9c7463a 100644 --- a/core/docz-core/src/states/entries.ts +++ b/core/docz-core/src/states/entries.ts @@ -38,6 +38,7 @@ export const state = (entries: Entries, config: Config): State => { start: async params => { const update = updateEntries(entries) + update(params); watcher.on('add', async () => update(params)) watcher.on('change', async () => update(params)) watcher.on('unlink', async () => update(params))