AppFlowy
AppFlowy copied to clipboard
[Bug] the recent views should refresh after switching to another workspace.
Bug Description
The recent views should refresh after switching to another workspace.
How to Reproduce
- switch to another workspace
Expected Behavior
- The recent views should refresh after switching to another workspace.
Operating System
Mobile
AppFlowy Version(s)
0.5.6
Screenshots
Additional Context
No response
Because the _isInitialized flag does not reset after switching workspaces, the mobile app always uses the cached version.
We should call getIt<CachedRecentService>().reset() on changing workspace. That should be enough to resolve this.
How about renaming the fetchRecentViews event to resetRecentViews and call _service.reset() in this event?