Skip to content

Commit

Permalink
* list: fix beforeRender not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Aug 27, 2024
1 parent c2df596 commit 84aa7c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/list/src/component/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ export class List<P extends ListProps = ListProps, S extends ListState = ListSta
this.props.afterRender?.call(this, firstRender);
}

protected _beforeRender(props: RenderableProps<P>): void | RenderableProps<P> | undefined {
return this.props.beforeRender?.call(this, props);
}

protected _getItems(props: RenderableProps<P>): Item[] {
const {items} = props;
const {items: stateItems} = this.state;
Expand Down

0 comments on commit 84aa7c8

Please sign in to comment.