DataGrid not updating Real Time Data after Field Edition. #10166
Labels
component: data grid
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example:
Steps:
Current behavior 😯
Real time data is not update in data grid after the server data update.
Using the examples from the docs. (https://mui.com/x/api/data-grid/grid-api/)
const useFakeMutation = () => {
return React.useCallback(
(update_sell) =>
new Promise((resolve, reject) => {
);
};
const mutateRow = useFakeMutation();
const processRowUpdate = React.useCallback(
async (newRow) => {
// Make the HTTP request to save in the backend
);
I also can see in console that the server information is update but the DataGrid row information still with the original values (from when the user started to edit the field)
Expected behavior 🤔
Data should flow and be displayed normally.
Context 🔦
base information is stored at
const [properties, setProperties] = useState([]);
useEffect(() => {
setProperties(properties);
}, [update]);
and it is retrieved from the server, but the field "Sell Test" is updated at the App.
Other fields should continue to be updated normally.
Your environment 🌎
npx @mui/envinfo
Order ID or Support key 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: