Skip to content

Commit c3151e5

Browse files
committed
Remove deprecated useA2UIStore and useA2UIStoreSelector
1 parent 81f7d0e commit c3151e5

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

renderers/react/src/core/A2UIProvider.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,3 @@ export function useA2UIContext(): A2UIContextValue {
190190
[actions, state.version]
191191
);
192192
}
193-
194-
/**
195-
* @deprecated Use useA2UIContext instead. This alias exists for backward compatibility only.
196-
*/
197-
export const useA2UIStore = useA2UIContext;
198-
199-
/**
200-
* @deprecated This selector pattern does not provide performance benefits with React Context.
201-
* Components will re-render on any context change regardless of what you select.
202-
* Use useA2UIContext() or useA2UI() directly instead.
203-
*
204-
* @param selector - Function to select a slice of state
205-
* @returns The selected state
206-
*/
207-
export function useA2UIStoreSelector<T>(selector: (state: A2UIContextValue) => T): T {
208-
const context = useA2UIContext();
209-
return selector(context);
210-
}

renderers/react/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ export {
44
useA2UIActions,
55
useA2UIState,
66
useA2UIContext,
7-
useA2UIStore, // @deprecated - use useA2UIContext
8-
useA2UIStoreSelector, // @deprecated - use useA2UIContext or useA2UI
97
} from './core/A2UIProvider';
108
export type { A2UIProviderProps } from './core/A2UIProvider';
119
export { A2UIRenderer } from './core/A2UIRenderer';

0 commit comments

Comments
 (0)