Skip to content

Commit 8b73446

Browse files
Rename __useReactRoot to __react19RootCreator
1 parent a88f75e commit 8b73446

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plugins/ResizeReorder/ReorderCell.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ class ReorderCell extends React.PureComponent {
249249
</ExternalContextProvider>
250250
);
251251

252-
if (this.props.__useReactRoot) {
252+
if (this.props.__react19RootCreator) {
253253
const flushSync = ReactDOM.flushSync || ((fn) => fn()); // ReactDOM.flushSync doesn't exist in older versions of React
254254
// flushSync is required to ensure that the drag proxy gets mounted synchronously in newer version of React
255255
flushSync(() => {
256-
const root = this.props.__useReactRoot(this.getDragContainer());
256+
const root = this.props.__react19RootCreator(this.getDragContainer());
257257
this.dragContainer.root = root;
258258
root.render(proxy);
259259
});
@@ -304,7 +304,7 @@ class ReorderCell extends React.PureComponent {
304304

305305
removeDragContainer = () => {
306306
// since the drag container is going to be removed, also unmount the drag proxy
307-
if (this.props.__useReactRoot) {
307+
if (this.props.__react19RootCreator) {
308308
this.dragContainer.root.unmount();
309309
} else {
310310
ReactDOM.unmountComponentAtNode(this.dragContainer);
@@ -394,15 +394,15 @@ ReorderCell.propTypes = {
394394
*
395395
* const reorderCell = (
396396
* <ReorderCell
397-
* __useReactRoot={createRoot}
397+
* __react19RootCreator={createRoot}
398398
* />
399399
* ```
400400
*
401401
* See https://github.com/schrodinger/fixed-data-table-2/issues/743) for more information.
402402
*
403403
* @deprecated This'll be removed in future major version updates of FDT.
404404
*/
405-
__useReactRoot: PropTypes.func,
405+
__react19RootCreator: PropTypes.func,
406406
};
407407

408408
export default ReorderCell;

0 commit comments

Comments
 (0)