Skip to content

Commit

Permalink
refactor: remove unnecessary markRaw
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine authored and myparcel-bot[bot] committed Jan 10, 2024
1 parent d7aa55e commit 11164ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/src/utils/createField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const createErrorComponent = (field: AnyElementConfiguration): Component => {
};

const createAsyncComponent = <C extends Component>(cb: () => C) => {
return markRaw(defineAsyncComponent(() => Promise.resolve(markRaw(cb()))));
return markRaw(defineAsyncComponent(() => Promise.resolve(cb())));
};

export const createField = <Type = unknown, Props extends ComponentProps = ComponentProps>(
Expand Down

0 comments on commit 11164ec

Please sign in to comment.