DevExpress / devextreme-reactive

Business React components for Bootstrap and Material-UI

Home Page:https://devexpress.github.io/devextreme-reactive/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: Failed prop type: The prop `currentView.displayName` is marked as required in `Memo`, but its value is `undefined`.

jhunexjun opened this issue · comments

Is there an existing issue for this?

  • I have searched this repository's issues and believe that this is not a duplicate.

I'm using ...

React Scheduler

Current Behaviour

Scheduler do not shows and console is showing an error.

image

Expected Behaviour

No error and Scheduler must show with groupings.

Steps to Reproduce

let initSchedulerData = [];

let initResources = [
{
fieldName: 'workers',
title: 'Workers',
allowMultiple: true,
instances: [],
},
{
fieldName: 'invoiceNo',
title: 'Invoice #',
allowMultiple: false,
instances: [],
},
];

let initGroupings = [{
resourceName: 'invoiceNo',
}, {
resourceName: 'workers',
}];

let [currentDate] = useState(new Date());
let [schedulerData, setScheduleData] = useState(initSchedulerData);
let [resources, setResources] = useState(initResources);
let [groupings, setGroupings] = useState(initGroupings);

const groupOrientation = viewName => viewName.split(' ')[0];

Environment

"dependencies": {
"@devexpress/dx-react-core": "^4.0.2",
"@devexpress/dx-react-scheduler": "^4.0.2",
"@devexpress/dx-react-scheduler-material-ui": "^4.0.2",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.0.4",
"@mui/lab": "^5.0.0-alpha.51",
"@mui/material": "^5.11.5",
"@mui/styled-engine-sc": "^5.11.0",
"@mui/x-date-pickers": "^5.0.0-alpha.7",
"bootstrap": "^4.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.4.2",
"styled-components": "^5.3.6",
},