@@ -249,11 +249,11 @@ class ReorderCell extends React.PureComponent {
249
249
</ ExternalContextProvider >
250
250
) ;
251
251
252
- if ( this . props . __useReactRoot ) {
252
+ if ( this . props . __react19RootCreator ) {
253
253
const flushSync = ReactDOM . flushSync || ( ( fn ) => fn ( ) ) ; // ReactDOM.flushSync doesn't exist in older versions of React
254
254
// flushSync is required to ensure that the drag proxy gets mounted synchronously in newer version of React
255
255
flushSync ( ( ) => {
256
- const root = this . props . __useReactRoot ( this . getDragContainer ( ) ) ;
256
+ const root = this . props . __react19RootCreator ( this . getDragContainer ( ) ) ;
257
257
this . dragContainer . root = root ;
258
258
root . render ( proxy ) ;
259
259
} ) ;
@@ -304,7 +304,7 @@ class ReorderCell extends React.PureComponent {
304
304
305
305
removeDragContainer = ( ) => {
306
306
// since the drag container is going to be removed, also unmount the drag proxy
307
- if ( this . props . __useReactRoot ) {
307
+ if ( this . props . __react19RootCreator ) {
308
308
this . dragContainer . root . unmount ( ) ;
309
309
} else {
310
310
ReactDOM . unmountComponentAtNode ( this . dragContainer ) ;
@@ -394,15 +394,15 @@ ReorderCell.propTypes = {
394
394
*
395
395
* const reorderCell = (
396
396
* <ReorderCell
397
- * __useReactRoot ={createRoot}
397
+ * __react19RootCreator ={createRoot}
398
398
* />
399
399
* ```
400
400
*
401
401
* See https://github.com/schrodinger/fixed-data-table-2/issues/743) for more information.
402
402
*
403
403
* @deprecated This'll be removed in future major version updates of FDT.
404
404
*/
405
- __useReactRoot : PropTypes . func ,
405
+ __react19RootCreator : PropTypes . func ,
406
406
} ;
407
407
408
408
export default ReorderCell ;
0 commit comments