Skip to content

Commit

Permalink
fix(android): component may not update with lazy node
Browse files Browse the repository at this point in the history
  • Loading branch information
iPel committed Dec 4, 2023
1 parent ce582b4 commit 22b98c0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ protected void checkHostViewReused() throws NativeRenderException {
@Nullable
public View prepareHostView(boolean skipComponentProps, PoolType poolType) {
if (isLazyLoad()) {
if (!skipComponentProps) {
// component props may changed here,
// reset FLAG_ALREADY_UPDATED to pass check in {@link #prepareHostViewRecursive} later.
resetNodeFlag(FLAG_ALREADY_UPDATED);
}
return null;
}
mPoolInUse = poolType;
Expand Down

0 comments on commit 22b98c0

Please sign in to comment.