Skip to content

Commit

Permalink
chore: fix jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
RiadhAdrani committed Aug 14, 2024
1 parent ede6ecf commit adee520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ export const useState = <T = unknown>(create: CreateState<T>): UseState<T> => {
* @param deps (optional) dependency according to which the effect will be re-executed. `undefined` by default.
* @example
* ```
* const filtered = useEffect(() => {
* useEffect(() => {
* const unsubscribe = subscribeTo('some-external-store')
*
* return () => unsubscribe()
Expand Down Expand Up @@ -1590,7 +1590,7 @@ export const useEffect = (callback: Effect, deps?: unknown): void => {
* @param deps (optional) dependency according to which the callback will be updated. `undefined` by default.
* @example
* ```
* const filtered = useUnmount(() => {
* useUnmount(() => {
* unsubscribe();
* });
* ```
Expand Down
1 change: 1 addition & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export {
createContext,
createComposable,
useErrorBoundary,
useUnmount,
} from './component/index.js';

export { Outlet, Portal, Fragment, ErrorBoundary } from './types.js';
Expand Down

0 comments on commit adee520

Please sign in to comment.