Skip to content

Commit

Permalink
fix: use staticContextFactoryName in children analyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Jun 17, 2024
1 parent d60fc17 commit b207b87
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/react-board/src/internal/boardAnalyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const boardColumnsAnalyzer = new ChildrenAnalyzer<
Environment
>([columnLeaf], {
staticRenderFactoryName: 'staticRender',
staticContextFactoryName: 'generateEnvironment',
})

export const boardItemsAnalyzer = new ChildrenAnalyzer<
Expand All @@ -22,4 +23,5 @@ export const boardItemsAnalyzer = new ChildrenAnalyzer<
Environment
>([itemLeaf], {
staticRenderFactoryName: 'staticRender',
staticContextFactoryName: 'generateEnvironment',
})
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ const blockLeaf = new Leaf<BlockProps>(node => node.props, Block)
export const blockAnalyzer = new ChildrenAnalyzer<BlockProps, never, Environment>([blockLeaf], {
ignoreUnhandledNodes: true,
staticRenderFactoryName: 'staticRender',
staticContextFactoryName: 'generateEnvironment',
// unhandledNodeErrorMessage: 'Only Block children are supported.',
})
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ export const blockAnalyzer = new ChildrenAnalyzer<
Environment
>([columnLeaf], {
staticRenderFactoryName: 'staticRender',
unhandledNodeErrorMessage: 'Only Block children are supported.',
staticContextFactoryName: 'generateEnvironment',
// unhandledNodeErrorMessage: 'Only Block children are supported.',
})

0 comments on commit b207b87

Please sign in to comment.