Improve lazy loading (#12186)

WIP, using preview app to test performance (which was very bad)
This commit is contained in:
Félix Malfait
2025-05-22 15:07:01 +02:00
committed by GitHub
parent 4ac47c2a1b
commit 79b4b3f783
26 changed files with 697 additions and 104 deletions
@@ -1,4 +1,4 @@
import { JSONContent } from '@tiptap/react';
import type { JSONContent } from '@tiptap/react';
import { parseEditorContent } from '../parseEditorContent';
describe('parseEditorContent', () => {
@@ -1,6 +1,6 @@
import { isStandaloneVariableString } from '@/workflow/utils/isStandaloneVariableString';
import { isNonEmptyString } from '@sniptt/guards';
import { JSONContent } from '@tiptap/react';
import type { JSONContent } from '@tiptap/react';
export const CAPTURE_VARIABLE_TAG_REGEX = /({{[^{}]+}})/;
@@ -1,4 +1,4 @@
import { JSONContent } from '@tiptap/react';
import type { JSONContent } from '@tiptap/react';
import { isDefined } from 'twenty-shared/utils';
export const parseEditorContent = (json: JSONContent): string => {