The cached items in the "ItemsRepositoryStore" are now cleared when a user selects an active deck in the settings and when a user signes out of the app.
This is done to force a reload of the items in a column, when a user switches between decks. For me this works better because, when I switch between decks I manually trigger a reload for all columns, which is now not necessary anymore.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/feeddeck/feeddeck/pull/47
**Author:** [@ricoberger](https://github.com/ricoberger)
**Created:** 10/22/2023
**Status:** ✅ Merged
**Merged:** 10/22/2023
**Merged by:** [@ricoberger](https://github.com/ricoberger)
**Base:** `main` ← **Head:** `core-clear-cached-items`
---
### 📝 Commits (1)
- [`00673b3`](https://github.com/feeddeck/feeddeck/commit/00673b3ff83ac52bc2bbe2fe2cd4054fe7e4c043) [core] Clear Cached Items
### 📊 Changes
**3 files changed** (+21 additions, -3 deletions)
<details>
<summary>View changed files</summary>
📝 `app/lib/repositories/items_repository.dart` (+10 -3)
📝 `app/lib/widgets/settings/decks/settings_decks_select.dart` (+6 -0)
📝 `app/lib/widgets/settings/profile/settings_profile_signout.dart` (+5 -0)
</details>
### 📄 Description
The cached items in the "ItemsRepositoryStore" are now cleared when a user selects an active deck in the settings and when a user signes out of the app.
This is done to force a reload of the items in a column, when a user switches between decks. For me this works better because, when I switch between decks I manually trigger a reload for all columns, which is now not necessary anymore.
<!--
Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the
the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz".
If you add a breaking change within your PR you should add ":warning:" to the title,
e.g. ":warning: [core] My breaking change"
-->
<!--
Description of what have been changed. Please also reference an issue, when available.
-->
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/47
Author: @ricoberger
Created: 10/22/2023
Status: ✅ Merged
Merged: 10/22/2023
Merged by: @ricoberger
Base:
main← Head:core-clear-cached-items📝 Commits (1)
00673b3[core] Clear Cached Items📊 Changes
3 files changed (+21 additions, -3 deletions)
View changed files
📝
app/lib/repositories/items_repository.dart(+10 -3)📝
app/lib/widgets/settings/decks/settings_decks_select.dart(+6 -0)📝
app/lib/widgets/settings/profile/settings_profile_signout.dart(+5 -0)📄 Description
The cached items in the "ItemsRepositoryStore" are now cleared when a user selects an active deck in the settings and when a user signes out of the app.
This is done to force a reload of the items in a column, when a user switches between decks. For me this works better because, when I switch between decks I manually trigger a reload for all columns, which is now not necessary anymore.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.