[nextjs] Limit AI gen and preview logic and artifacts to Editing Host #360
Annotations
4 warnings
|
packages/react/src/components/Form.tsx#L81
React Hook useEffect has missing dependencies: 'context.api?.edge?.clientContextId', 'context.api?.edge?.edgeUrl', 'isEditing', 'params.FormId', and 'rendering.uid'. Either include them or remove the dependency array
|
|
packages/react/src/components/DesignLibrary.tsx#L238
React Hook useEffect has missing dependencies: 'props', 'rendering.fields', 'rendering.params', and 'rendering.uid'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect
|
|
packages/react/src/components/DesignLibrary.tsx#L62
Assignments to the 'componentReady' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect
|
|
packages/core/src/layout/utils.ts#L3
Missing JSDoc @PARAM "defaultValue" declaration
|
The logs for this run have expired and are no longer available.
Loading