mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-10 22:20:14 +00:00
feat(studio): enable timeline virtualization by default (#2926)
* feat(studio): enable timeline virtualization by default * fix(ci): measure timeline performance in production React
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
/**
|
||||
* Row virtualization opt-in. Disabled until horizontal windowing and stable
|
||||
* gesture lifetime land.
|
||||
* Row virtualization is the product default. Setting the environment flag to
|
||||
* "0" keeps one explicit rollback path for comparisons and emergencies.
|
||||
*
|
||||
* It lives in its own module so the scroll-viewport hook can read it without
|
||||
* importing the virtualization hook that already imports the viewport snapshot
|
||||
* type back, which would close an import cycle.
|
||||
*/
|
||||
export const STUDIO_TIMELINE_ROW_VIRTUALIZATION_ENABLED =
|
||||
import.meta.env.DEV === true &&
|
||||
import.meta.env.VITE_STUDIO_TIMELINE_ROW_VIRTUALIZATION_ENABLED === "1";
|
||||
import.meta.env.VITE_STUDIO_TIMELINE_ROW_VIRTUALIZATION_ENABLED !== "0";
|
||||
|
||||
Reference in New Issue
Block a user