Skip to content

Commit a88f75e

Browse files
Shorten prop name
1 parent b7ffc7d commit a88f75e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/plugins/ResizeReorder/ReorderCell.js

Lines changed: 5 additions & 5 deletions
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.__useReactv19Root) {
252+
if (this.props.__useReactRoot) {
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.__useReactv19Root(this.getDragContainer());
256+
const root = this.props.__useReactRoot(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.__useReactv19Root) {
307+
if (this.props.__useReactRoot) {
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-
* __useReactv19Root={createRoot}
397+
* __useReactRoot={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-
__useReactv19Root: PropTypes.func,
405+
__useReactRoot: PropTypes.func,
406406
};
407407

408408
export default ReorderCell;

0 commit comments

Comments
 (0)