Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Jul 6, 2022
1 parent c26d504 commit 6861a91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/subscribeToStateUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import isShallowEqual from './utils/isShallowEqual';
type SubscriberGenerator = (WrappedComponent: ComponentType<any>) => (props: any) => JSX.Element;

/**
* @deprecated
* For class component, use `AnswersHeadlessContext` directly to dispatch actions and receive state updates.
* For functional component, use `useAnswersAcions` and `useAnswersState` instead.
*
* Generates a HOC that updates a given Component's props based on the current
* answers-headless state and a given mapping function.
*
* @deprecated
* For class component, use `AnswersHeadlessContext` directly to dispatch actions and receive state updates.
* For functional component, use `useAnswersActions` and `useAnswersState` instead.
*/
export function subscribeToStateUpdates(
mapStateToProps: (s: State) => Record<string, unknown>
Expand Down

0 comments on commit 6861a91

Please sign in to comment.