Skip to content

fix: redundant clearRenderState call in renderCustom #74

@wazolab

Description

@wazolab

Severity

P2 — Dead code

Description

In `src/teritorio-cluster.ts`, `renderCustom` calls `clearRenderState()` on line 296, which clears both `clusterLeaves` and `featuresMap`. Then lines 302-303 immediately clear them again:
```ts
this.clearRenderState() // line 296

// ...

this.clusterLeaves.clear() // line 302 — redundant
this.featuresMap.clear() // line 303 — redundant
```

Suggested Fix

Remove lines 302-303, or remove the `clearRenderState()` call on line 296 and keep the explicit clears. Either way, one of the two must go.

Files

  • `src/teritorio-cluster.ts:296,302-303`

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech maintenanceUpdates about tech stack (bundler, build, typescript ...)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions