Skip to content

chore(react): remove DeckCanvas from @deck.gl/react - #11259

Merged
chrisgervang merged 1 commit into
masterfrom
chr/react-remove-deck-canvas
Nov 20, 2026
Merged

chrisgervang merged 1 commit into
masterfrom
chr/react-remove-deck-canvas

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up of #11245

Background

DeckCanvas came over with the faithful copy of the community react-fiber package, but it doesn't use the renderer, and the TSC review (#11041) never covered it. It came from a proof of concept (visgl/deck.gl-community#846) whose RFC (#10392) is still a draft. It moves to @deck.gl-community/react in visgl/deck.gl-community#1098. This supersedes #11258. #11255 drops its docs page.

Change List

  • @deck.gl/react: remove DeckCanvas, DeckCanvasProps and the canvas registry
  • Unit tests

DeckCanvas came over with the faithful copy of the community react-fiber
package (#11245), but it doesn't use the renderer and was never part of the
upstream plan that the TSC reviewed. It came from a proof of concept
(visgl/deck.gl-community#846) whose RFC (#10392) is still a draft, and it wraps
deck.setProps until core has setPropsSource. It moves to the community
@deck.gl-community/react package instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
chrisgervang pushed a commit that referenced this pull request Nov 20, 2026
DeckCanvas leaves @deck.gl/react in #11259 and moves to @deck.gl-community/react.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn
@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Removes DeckCanvas, DeckCanvasProps, and the canvas registry from @deck.gl/react.

  • DeckCanvas leaves the @deck.gl/react package.

Reviews (2) · Last reviewed commit: "chore(react): remove DeckCanvas from @de..." · Reviewed by Greptile

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 82.466% (-0.05%) from 82.519% — chr/react-remove-deck-canvas into master

@chrisgervang
chrisgervang added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 6fce7d1 Nov 20, 2026
10 checks passed
@chrisgervang
chrisgervang deleted the chr/react-remove-deck-canvas branch November 20, 2026 03:25
chrisgervang added a commit to visgl/deck.gl-community that referenced this pull request Nov 21, 2026
…ty/react (#1098)

* refactor(react): move DeckCanvas from react-fiber to @deck.gl-community/react

DeckCanvas doesn't use the Fiber renderer; it renders a canvas and adds its views,
layers and widgets to an application-owned Deck. It moves to the general React
components package, with its tests, docs and the multi-canvas example.

- DeckCanvas and its registry move to modules/react/src/components, with a local
  layout-effect helper. The 'client-only' marker is dropped so the package root
  stays importable during server rendering; the component only touches the DOM
  from layout effects.
- @deck.gl-community/react gains a peer dependency on @deck.gl/core.
- The multi-canvas example moves to examples/react/multi-canvas.
- The upgrade guide and what's new describe the new import.

deck.gl removes DeckCanvas from @deck.gl/react in visgl/deck.gl#11259.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn

* docs: drop the DeckCanvas upgrade note; react-fiber was never published

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn

* fix(react): don't add a @deck.gl/core peer to @deck.gl-community/react

DeckCanvas imports only types from @deck.gl/core, so the package doesn't need it
at runtime. The exact 10.0.0-alpha.1 peer made npm report ERESOLVE for Panel and
ReactPanel users on deck.gl 9, and an optional peer conflicts the same way when
an older @deck.gl/core is installed. The DeckCanvas page states that
multi-canvas mode needs @deck.gl/core 9.4 or later.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn

* refactor(react): export DeckCanvas from @deck.gl-community/react/deck-canvas

The package root no longer re-exports DeckCanvas, so its declarations never
reference @deck.gl/core. A TypeScript app that uses only Panel, has no
@deck.gl/core and sets skipLibCheck: false typechecks again. DeckCanvas users
import the subpath, which keeps the real core types.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LGNhMnSJ94uYgx7ihcVwPn

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants