Comments (4)
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷.
A live example would be perfect. This codesandbox.io template may be a good starting point.
Also, don't forget to attach your environment info in the description above. You can get it by running npx @mui/envinfo
in your CLI.
Thank you!
from mui-x.
Hello, first of all, I apologize for the delayed response. It might take me a bit of time to illustrate the situation you're describing with a codesandbox example, so I'll explain the exact situation first.
I don't always want to display the datagridpro component; I'm using conditional rendering. And if the datagridpro component isn't rendered, I'm encountering an error like this. Is there a way to resolve this? I don't want to display the datagridpro component all the time, only in certain situations.
If you'd like, I can provide an example to explain further. Thank you in advance for your assistance.
from mui-x.
Hello again, I'm providing an example related to codesandbox. In the example, when I change the value of dataGridShow
to false, I encounter the error you see. After changing the value to "true," it works smoothly.
Codesandbox example: https://codesandbox.io/s/optimistic-dubinsky-wflf7s?file=/demo.tsx
from mui-x.
If the datagrid isn't mounted & initialized, then calling the apiRef
methods is incorrect because it's not setup.
Fixed: https://codesandbox.io/s/nervous-maxwell-dps4zv
from mui-x.
Related Issues (20)
- [data grid] Full featured CRUD example issues HOT 1
- [data grid] Missing `cellMouseLeave` in `apiRef.subscribeEvent` HOT 6
- [data grid] how to update column header titles when switching language without reseting data-grid state HOT 11
- [data grid] issue with using sx in GridToolbarColumnsButton HOT 3
- [data grid] What is the best way to modify the toolbar menus ? HOT 3
- [data grid] Stale Cache for filter items > 5 HOT 1
- [data grid] All grouped rows collapses when rows updating (by state, not by updateRows) HOT 2
- [fields] Handle form submit on `Enter` click with "v7" fields
- [charts] Transparent fills in area line charts overlap causing color mixing issues HOT 1
- [DateRangePicker] Stop forcing initial focus on the first section
- [data grid] slotProps ColumnsManagement is not working HOT 5
- [data grid] Noisy warning, Accessing element.ref was removed in React 19 HOT 3
- [data grid] Detail panel for focused row is "sticky" when scrolling HOT 4
- [charts] Support multiple values for border radius on bar charts
- [pickers] Add a default AM or PM to the time picker HOT 3
- [data grid] Custom Columns: How to improve usability of the Date Picker in a narrow column HOT 6
- [data grid] Unable to override default props/styling for Header HOT 2
- [pickers][DatePicker] change borderRadius of selected day for dateCalendar HOT 10
- [charts] Can we have horizontal Gauge Chart? HOT 7
- [data grid] Row grouping does not work with nested row values HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.