Skip to content

Commit f10c898

Browse files
Add comments for hooks options (#4942)
Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
1 parent 50fcda6 commit f10c898

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/src/internal.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ export { PreactContext };
1313
export interface Options extends PreactOptions {
1414
/** Attach a hook that is invoked before a vnode is diffed. */
1515
_diff?(vnode: VNode): void;
16-
diffed?(vnode: VNode): void;
1716
/** Attach a hook that is invoked before a vnode has rendered. */
1817
_render?(vnode: VNode): void;
18+
/** Attach a hook that is invoked after a vnode has rendered. */
19+
diffed?(vnode: VNode): void;
1920
/** Attach a hook that is invoked after a tree was mounted or was updated. */
2021
_commit?(vnode: VNode, commitQueue: Component[]): void;
2122
_unmount?(vnode: VNode): void;

0 commit comments

Comments
 (0)