Default and cached sorting method #952
Replies: 3 comments 3 replies
-
This would eliminate my only real annoyance with this otherwise completely excellent solution. Default sorting by Alphabetical should be a thing, I dislike having to select Alphabetical manually every time I change pages. Thanks for looking into this! |
Beta Was this translation helpful? Give feedback.
-
I'm not even seeing any way to sort the "All Recipes" page at all. I do see that once I start a search, I can sort the results, though "All Recipes" page should have the same option, and totally agree that each user should be able to set a default sort (or the last-chosen sort should just stick for that user across all views). |
Beta Was this translation helpful? Give feedback.
-
This is now handled via browser storage and query params |
Beta Was this translation helpful? Give feedback.
-
Before submitting this feature request I have
Please Describe The Problem To Be Solved
It would be helpful to have a default sort selection on a per-user or global basis. Alternatively, the All Recipes page should cache the sort method when it's changed by the user so when navigating between pages, the sorting remains on what was previously selected.
(Optional): Suggest A Solution
A new prop needs to be created on the CardSection component and then run
sortRecipes()
with the value of the prop on one of the lifecycle hooks. The value retrieved from one of the two below methods can then be passed through the new CardSection prop in AllRecipes.vueAdditional Information
Beta Was this translation helpful? Give feedback.
All reactions