react-photo-studio
react-photo-studio copied to clipboard
Disable Preserve Drawing Buffer in Production
For Percy snapshots to work, the Pixi Application parameter preserveDrawingBuffer
needs to be set to true.
However, setting this parameter to true slows down production.
Instead we should check if the application is running in the pipeline or in production, and conditionally set this parameter to true when in pipeline and false in production.
This can be found in Canvas.tsx
as new PIXI.Application