mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
docs(ui): add note about reactflow types
This commit is contained in:
committed by
Mary Hipp Rogers
parent
f1a542aca2
commit
bcab754ac2
@@ -215,6 +215,9 @@ const slice = createSlice({
|
||||
initialState: getInitialState(),
|
||||
reducers: {
|
||||
nodesChanged: (state, action: PayloadAction<NodeChange<AnyNode>[]>) => {
|
||||
// TODO(psyche): The below TS issue was recently fixed upstream. Need to upgrade @xyflow/react and then we
|
||||
// should be able to remove this cast.
|
||||
//
|
||||
// In v12.7.0, @xyflow/react added a `domAttributes` property to the node data. One DOM attribute is
|
||||
// defaultValue, which may have a value of type `readonly string[]`. This conflicts with the immer-
|
||||
// provided Draft type, used internally by RTK. We don't use `domAttributes`, so we can safely cast
|
||||
|
||||
Reference in New Issue
Block a user