Skip to content

Commit

Permalink
disable renderView when allowReload is false
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed Sep 26, 2023
1 parent 3543500 commit f799ce2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public class ComponentEngine {
}

func render(contentOffsetAdjustFn: (() -> CGPoint)? = nil, updateViews: Bool = false) {
guard let componentView = view, !isRendering, let component = component else { return }
guard let componentView = view, allowReload, !isRendering, let component = component else { return }
isRendering = true
defer {
needsRender = false
Expand Down

0 comments on commit f799ce2

Please sign in to comment.