Update: Solved. Turns out that the problem occurs because EntriesGridView initialized in the wrong order.
Wrong:
EntriesGridView(entries: viewModel.entries, tags: viewModel.tags, selectedTag: $viewModel.selectedTags)
Correct:
EntriesGridView(selectedTag: $viewModel.selectedTags, entries: viewModel.entries, tags: viewModel.tags)