Skip to content

Commit

Permalink
[v9] Improve Tile3DLayer#isLoaded (#8285)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgervang authored Nov 16, 2023
1 parent 61336f7 commit c06debc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ export default class Tile3DLayer<DataT = any, ExtraPropsT extends {} = {}> exten
}

get isLoaded(): boolean {
const {tileset3d} = this.state;
return tileset3d !== null && tileset3d.isLoaded();
return Boolean(this.state?.tileset3d?.isLoaded() && super.isLoaded);
}

shouldUpdateState({changeFlags}: UpdateParameters<this>): boolean {
Expand Down

0 comments on commit c06debc

Please sign in to comment.