## Description In this PR canvas resizing hook was refactored, many unnecessary effects were removed leaving the bare minimum. Fixes #34741 ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10155774784> > Commit: 1900e8b429151d160e20712b6aca962f3a0e33ec > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10155774784&attempt=2" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Tue, 30 Jul 2024 05:37:38 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new constant for resize debouncing to optimize UI performance. - Added a custom hook to automatically resize canvas elements based on container dimensions. - **Enhancements** - Improved responsiveness of the app layout with better width management for canvas elements. - Enhanced structure and readability of components through destructuring props. - **Bug Fixes** - Updated logic in the main canvas reducer to prevent unnecessary state updates after initialization. - **Tests** - Updated tests to reflect changes in hooks focusing on canvas width auto-resizing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| client | ||
| server | ||
| util | ||