This commit is contained in:
StyleZhang
2024-03-05 14:41:17 +08:00
parent b2ae7089dc
commit acacc0a4cb
2 changed files with 25 additions and 0 deletions

View File

@ -10,3 +10,7 @@ export function useFeatures<T>(selector: (state: FeatureStoreState) => T): T {
return useStore(store, selector)
}
export function useFeaturesStore() {
return useContext(FeaturesContext)
}