[GH-ISSUE #5230] [Bug] the recent views should refresh after switching to another workspace. #2315

Closed
opened 2026-03-23 21:21:23 +00:00 by mirror · 3 comments
Owner

Originally created by @LucasXu0 on GitHub (Apr 30, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5230

Originally assigned to: @Xazin on GitHub.

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

Screenshot 2024-04-30 at 18 56 39

Additional Context

No response

Originally created by @LucasXu0 on GitHub (Apr 30, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5230 Originally assigned to: @Xazin on GitHub. ### 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 <img width="536" alt="Screenshot 2024-04-30 at 18 56 39" src="https://github.com/AppFlowy-IO/AppFlowy/assets/11863087/b38a73ef-23a0-4dbc-bc8a-aa38d67eafcc"> ### Additional Context _No response_
mirror 2026-03-23 21:21:23 +00:00
  • closed this issue
  • added the
    mobile
    bug
    labels
Author
Owner

@LucasXu0 commented on GitHub (Apr 30, 2024):

Because the _isInitialized flag does not reset after switching workspaces, the mobile app always uses the cached version.

<!-- gh-comment-id:2084993576 --> @LucasXu0 commented on GitHub (Apr 30, 2024): Because the _isInitialized flag does not reset after switching workspaces, the mobile app always uses the cached version.
Author
Owner

@Xazin commented on GitHub (Apr 30, 2024):

We should call getIt<CachedRecentService>().reset() on changing workspace. That should be enough to resolve this.

<!-- gh-comment-id:2084995169 --> @Xazin commented on GitHub (Apr 30, 2024): We should call `getIt<CachedRecentService>().reset()` on changing workspace. That should be enough to resolve this.
Author
Owner

@LucasXu0 commented on GitHub (Apr 30, 2024):

How about renaming the fetchRecentViews event to resetRecentViews and call _service.reset() in this event?

<!-- gh-comment-id:2085011956 --> @LucasXu0 commented on GitHub (Apr 30, 2024): How about renaming the `fetchRecentViews` event to `resetRecentViews` and call `_service.reset()` in this event?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2315
No description provided.