Skip to content

Commit

Permalink
Clear the sessions when you navigate to the page
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMorrow committed Oct 20, 2024
1 parent bc27183 commit ec9ab1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions LiftLog.Ui/Pages/Feed/FeedPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
Dispatcher.Dispatch(new FetchSessionFeedItemsAction(FromUserAction: false));
Dispatcher.Dispatch(new FetchInboxItemsAction(FromUserAction: false));
Dispatcher.Dispatch(new SetReopenCurrentSessionAction(SessionTarget.FeedSession, false));
Dispatcher.Dispatch(new SetCurrentSessionAction(SessionTarget.FeedSession, null));
Dispatcher.Dispatch(new PublishUnpublishedSessionsAction());
if (FeedState.Value.Identity is null)
{
Expand Down
1 change: 1 addition & 0 deletions LiftLog.Ui/Pages/History/HistoryPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ else
Dispatcher.Dispatch(new SetPageTitleAction("History"));
Dispatcher.Dispatch(new SetBackNavigationUrlAction(null));
Dispatcher.Dispatch(new SetReopenCurrentSessionAction(SessionTarget.HistorySession, false));
Dispatcher.Dispatch(new SetCurrentSessionAction(SessionTarget.HistorySession, null));
this._latestSessions = await SessionService
.GetLatestSessionsAsync()
.ToListAsync();
Expand Down

0 comments on commit ec9ab1e

Please sign in to comment.