Skip to content

perf(core): memoize prepareFormState #3638

perf(core): memoize prepareFormState

perf(core): memoize prepareFormState #3638

Triggered via pull request September 16, 2024 21:49
Status Success
Total duration 1m 25s
Artifacts

are-we-compiled-yet.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
lint: packages/sanity/src/core/form/inputs/PortableText/object/Annotation.tsx#L228
Mutating a value returned from a function whose return value should not be mutated
lint: packages/sanity/src/core/hooks/useUserListWithPermissions.ts#L100
Unexpected reassignment of a variable which was defined outside of the component. Components and hooks should be pure and side-effect free, but variable reassignment is a form of side-effect. If this variable is used in rendering, use useState instead. (https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
lint: packages/sanity/src/core/tasks/components/form/tasksFormBuilder/FormCreate.tsx#L68
React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
lint: packages/sanity/src/core/tasks/components/form/tasksFormBuilder/FormCreate.tsx#L88
React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
lint: packages/sanity/src/core/tasks/hooks/useActivityLog.ts#L71
React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
lint: packages/sanity/src/structure/panes/document/documentPanel/documentViews/FormView.tsx#L119
React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior
lint: packages/sanity/src/structure/panes/documentList/DocumentListPaneContent.tsx#L262
React Compiler has skipped optimizing this component because one or more React ESLint rules were disabled. React Compiler only works when your components follow all the rules of React, disabling them may result in unexpected or incorrect behavior