uber / nebula.gl

A suite of 3D-enabled data editing overlays, suitable for deck.gl

Home Page:https://nebula.gl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug with function EditableGeoJsonLayer.getCursor()

linze99 opened this issue · comments

after deck.gl update to 8.8.0+,my propram raise a exception like this:
1
it happend in the function EditableGeoJsonLayer.getCursor(),
2
at the mean time this.state is undefined but not null;

after changed the code with:

  if (this.state === null || this.state === undefined) {
    // Layer in 'Awaiting state'
    return null;
  }

it works fine

@linze99 are you on React 18? I ran into the same issue and I'm wondering if it could be related to automatic batching in React 18.