mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
1.27k stars 282 forks source link

datagrid not updating state on preview mode #1852

Closed Prajapati-developer closed 1 year ago

Prajapati-developer commented 1 year ago

image datagrid not updating state in preview mode as data is a async and taking time to populate @Janpot

Janpot commented 1 year ago

Can you share a full reproduction? If you don't want to create a repository just for that, maybe just zip the ./toolpad folder and upload in a comment.

Prajapati-developer commented 1 year ago

toolpad.zip here you can find that manually query is also not working in my case and in preview mode it is showing error state in data grid it is fine if i can show user friendly message. how can i navigate one page to another by using param on button click . Thanks in advance

bharatkashyap commented 1 year ago

@Prajapati-developer I think you might have missed adding all of the files in your project - I can only see one component file in the folder with a CellRenderer component inside it:

Screenshot 2023-04-04 at 6 55 48 PM Screenshot 2023-04-04 at 6 55 30 PM

Perhaps you could share a screenshot of the query which is not working for you

how can i navigate one page to another by using param on button click

If I understand correctly, you intent to navigate from one page to another while including params in the URL. This feature is being shaped and you can track its development in this issue https://github.com/mui/mui-toolpad/issues/1800

Prajapati-developer commented 1 year ago

manage-user.zip attached files here .

bharatkashyap commented 1 year ago

manage-user.zip attached files here .

Thanks @Prajapati-developer, the usersList query which the Datagrid was using to show data had a transformation enabled which was erroring out - same issue as in https://github.com/mui/mui-toolpad/issues/1855 which is fixed by https://github.com/mui/mui-toolpad/pull/1856, and will be available in the forthcoming release (today).

Till then, I removed the transformation (which you don't actually need since it just returns the data as it is) and your page seems to work:

Screenshot 2023-04-05 at 1 58 13 PM
prakhargupta1 commented 1 year ago

Hi @Prajapati-developer This has been fixed in the linked PR and is part of Toolpad version v0.1.3. Can you please check and confirm? Thanks!

github-actions[bot] commented 1 year ago

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.