woocommerce/plugins/woocommerce-blocks/assets/js/blocks/mini-cart
Niels Lange 752273e6ce
[React 18] Use `createRoot().render()` instead of `render()` (#48843)
* Use createRoot().render() instead of render()

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Replace `unmountComponentAtNode()` with `createRoot().unmount()`

* Adjust JS unit tests

* Remove obsolete import

* Remove “ReactDOM.render is no longer supported” check

* Update pnpm-lock.yaml

* Migrate JS unit test to React 18

* Revert "Update pnpm-lock.yaml"

This reverts commit 18bfc967aa.

* Migrate JS unit test to React 18

* Migrate JS unit test to React 18

* Minor refactor

* Unskip previously skipped tests

* Fix JS unit test error related to root.unmount()

* Remove obsolete dependency

* Fix failing blocks e2e test

* Fix failing core e2e tests

* Optimise memoisation to prevent “Maximum update depth exceeded” error.

* Fix Filters JS tests in #48796 (#49973)

* Run cleanup in Rating Filter JS tests

* Run cleanup and wait user interactions in Stock Status Filter JS tests

* Rename constant

* Simplify conditional statement

* Introduce TS type

* Address lint error

* Rename TS type

* Optimise multiple TS types

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Sam Seay <samueljseay@gmail.com>
Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>
2024-07-26 09:18:48 +02:00
..
mini-cart-contents [Performance]: Replace `classnames` usage with `clsx` (#47760) 2024-05-31 05:49:36 +02:00
quantity-badge Add product count visibility option to mini cart block (#48545) 2024-07-04 13:52:01 +03:00
test [React 18] Use `createRoot().render()` instead of `render()` (#48843) 2024-07-26 09:18:48 +02:00
utils update text domain in plugins/woocommerce-blocks (#42717) 2023-12-12 14:12:36 -08:00
block.json Add product count visibility option to mini cart block (#48545) 2024-07-04 13:52:01 +03:00
block.tsx [React 18] Use `createRoot().render()` instead of `render()` (#48843) 2024-07-26 09:18:48 +02:00
component-frontend.tsx Add product count visibility option to mini cart block (#48545) 2024-07-04 13:52:01 +03:00
edit.tsx Add product count visibility option to mini cart block (#48545) 2024-07-04 13:52:01 +03:00
editor.scss Add product count visibility option to mini cart block (#48545) 2024-07-04 13:52:01 +03:00
frontend.ts Load mini cart scripts by default on touch-enabled (mobile) devices (#48769) 2024-06-28 13:23:32 +01:00
index.tsx Remove isFeaturePlugin and flag code from FeatureGating class (#47866) 2024-05-30 02:50:09 +12:00
style.scss Fix the mini cart items not being visible when zoomed in (#48384) 2024-07-09 16:47:21 +01:00
types.ts Add product count visibility option to mini cart block (#48545) 2024-07-04 13:52:01 +03:00