Open ramsaptami opened 2 years ago
Happens both in View and Edit mode. When running in Cypress you can observe what is happening to the form.
The relevant form is in app/client/src/ce/pages/workspace/WorkspaceInviteUserForm.tsx.
Solution could be to either:
One aspect looks to be the use of React useEffect in WorkspaceInviteUserForm:
useEffect(() => {
if (!isAclFlow) {
fetchUser(props.workspaceId);
fetchAllRoles(props.workspaceId);
fetchCurrentWorkspace(props.workspaceId);
}
}, [props.workspaceId, fetchUser, fetchAllRoles, fetchCurrentWorkspace]);
Since the 3 api's will return at different times this will likely create the 3 redraws of the dialog that can be observed. Proposed solution is to use async/await the 3 api's:
useEffect(() => {
const fetchAll3 = async () => {
await fetchUser(props.workspaceId);
await fetchAllRoles(props.workspaceId);
await fetchCurrentWorkspace(props.workspaceId);
};
if (!isAclFlow) {
fetchAll3();
}
}, [props.workspaceId, fetchUser, fetchAllRoles, fetchCurrentWorkspace]);
There is still an issue remaining where the WorkspaceInviteUserForm is added to the base dialog in client/src/pages/workspace/AppInviteUsersForm. This has it's own hook for an API request to /api/v1/workspaces before the WorkspaceInviteUserForm gets the members.
@nzidol could I please work on this?
Sure it's open source..... Personally I like to see multiple opinions and solutions, chance for everyone to learn....
Cheers
Ido
On Sat, 22 Oct 2022, 3:19 pm Tallon66, @.***> wrote:
@nzidol https://github.com/nzidol could I please work on this?
— Reply to this email directly, view it on GitHub https://github.com/appsmithorg/appsmith/issues/14601#issuecomment-1287586975, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH46HOKDCQONNDN4ZLFWM3WENFK5ANCNFSM5Y6AA7FQ . You are receiving this because you were mentioned.Message ID: @.***>
@Tallon66 apologies for getting back so late. You can take this up if you're still up for it? I can assign it to you.
Hi
Will be unavailable for any work on this for the next 3-4 months.
Sorry
Ido
On Tue, 31 Jan 2023, 5:42 pm ramsaptami, @.***> wrote:
@nzidol https://github.com/nzidol apologies for getting back so late. You can take this up if you're still up for it? I can assign it to you.
— Reply to this email directly, view it on GitHub https://github.com/appsmithorg/appsmith/issues/14601#issuecomment-1409746888, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADH46HPU4WWVXMGLUBYGFNTWVCJ5DANCNFSM5Y6AA7FQ . You are receiving this because you were mentioned.Message ID: @.***>
Is there an existing issue for this?
Description
Share modal in view mode opens up multiple modals and appears glitchy. This does not happen all the time but this behaviour can be observed by repeating the action a couple of times
Steps To Reproduce
https://www.loom.com/share/c66bb2e72b1440a3b692867d3b6aebe5glitchy
Public Sample App
No response
Version
Cloud