Skip to content

Commit f341055

Browse files
authored
fix(examples): prevent conflict between recently viewed items and searches plugins (#1178)
1 parent 207d41a commit f341055

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/recently-viewed-items/recentlyViewedItemsPlugin.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export function createLocalStorageRecentlyViewedItems<
6363

6464
return {
6565
...transformedSource,
66+
sourceId: 'recentlyViewedItemsPlugin',
6667
getItemUrl({ item }) {
6768
return item.url;
6869
},
@@ -128,6 +129,7 @@ export function createLocalStorageRecentlyViewedItems<
128129

129130
return {
130131
...plugin,
132+
name: 'aa.localStorageRecentlyViewedItemsPlugin',
131133
data,
132134
};
133135
}

0 commit comments

Comments
 (0)