You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Adds a trash icon to delete individual items
- Adds a clear button to clear all history
- Changes so item not in both items list and favorites list
- Fixes so it edits the correct label if the same operation is in the list twice
- Adds a callback for when you click an item and it's set as the active item in editor (helpful for customizing UI based on when query changes)
- Pass in entire item and de-structure needed properties in history store instead (helpful if you're customizing to build your own <HistoryContext.Provider... i.e. customizing the addToHistory/editLabel/etc functions to use a backend instead of a local storage and may need a unique id or other properties. Without passing the entire item there's no way to receive those extra properties but passing the entire item allows that)
---------
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Co-authored-by: Dimitri POSTOLOV <[email protected]>
Co-authored-by: Myles Murphy <[email protected]>
- Add a "clear history" button to clear all history as well as trash icons to clear individual history items
6
+
7
+
- Change so item is in history items or history favorites, not both
8
+
9
+
- Fix history label editing so if the same item is in the list more than once it edits the correct label
10
+
11
+
- Pass the entire history item in history functions (addToHistory, editLabel, toggleFavorite, etc.) so users building their own HistoryContext.Provider will get any additional props they added to the item in their customized functions
12
+
13
+
- Adds a "setActive" callback users can use to customize their UI when the history item is clicked
0 commit comments