Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache behaviour inconsistent #22

Open
stevehayles opened this issue Mar 8, 2023 · 0 comments
Open

Cache behaviour inconsistent #22

stevehayles opened this issue Mar 8, 2023 · 0 comments

Comments

@stevehayles
Copy link

The dynamic slots functionality behaves differently with regard to the cache depending on previous actions. If the cache contains one or less 'slotCounts' then when "_onItemsAdded" is called in the DashboardItemStorageDelegate the item is cached for that layout correctly but if the cache (ie. Map<int, Map<String, T>> _items) has already had values for multiple slotcounts then the "_onItemsAdded" function adds any new items to all of the slotCounts which ties their layout behaviour together.

It's not clear to me exactly what the intended functionality is meant to be but it's inconsistent right now and makes for confusing behaviour for a user. If I disable caching then I get the behaviour I would expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant