Skip to content

Commit

Permalink
refactor: render
Browse files Browse the repository at this point in the history
  • Loading branch information
hexqi committed Sep 9, 2024
1 parent 86b4369 commit 1e19840
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions packages/canvas/render/src/RenderMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,6 @@ const setRenderer = (fn) => {
canvasRenderer = fn
}

let rendererMounted

const getRendererMounted = () => rendererMounted || function() {}

const setRendererMounted = (fn) => {
rendererMounted = fn
}

export default {
setup() {
provide('rootSchema', schema)
Expand Down Expand Up @@ -445,7 +437,5 @@ export const api = {
setGlobalState,
setNode,
getRenderer,
setRenderer,
getRendererMounted,
setRendererMounted
setRenderer
}

0 comments on commit 1e19840

Please sign in to comment.