refactor(store): rename slice to feature (#318)

This commit is contained in:
rahim
2026-01-21 00:33:28 +11:00
committed by GitHub
parent 5bbec30df9
commit f01a5fcf5c
71 changed files with 777 additions and 978 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
/**
* Returns array with duplicates removed, keeping the LAST occurrence.
* Useful for slice merging where extensions should override base slices.
* Useful for feature merging where extensions should override base features.
*
* @example
* ```ts
* const slices = [{ id: 'a', v: 1 }, { id: 'b', v: 2 }, { id: 'a', v: 3 }];
* uniqBy(slices, s => s.id);
* const features = [{ id: 'a', v: 1 }, { id: 'b', v: 2 }, { id: 'a', v: 3 }];
* uniqBy(features, s => s.id);
* // => [{ id: 'b', v: 2 }, { id: 'a', v: 3 }]
* ```
*/