-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UpdateMembership #3133
Comments
From my research to update the left sidepane call // memberships/modals/UpdateMembershipModal/UpdateMembershipModal.tsx
import { useMyMemberships } from '../../hooks/useMyMemberships'
const { members, setActive, active } = useMyMemberships()
...
if (state.matches('success')) {
setActive(member) // <-- here
return <UpdateMembershipSuccessModal onClose={hideModal} member={member} /> This should automatically update |
@traumschule Hey will be okay to go like that 👌 , thanks for driving it by us! |
Tested on https://dao-git-dev-joystream.vercel.app/#/profile/memberships You still need to refresh the page to see the changed data 2022-12-03.18.50.57.mov |
✅ Tested on https://dao-git-dev-joystream.vercel.app/#/profile/memberships All items were updated successfully 2022-12-22.12.40.37.mov |
…stream#3773) * Update Sidebar membership display after edit tx (Joystream#3133) * remove unused variables Co-authored-by: Joystream Stats <dev@joystreamstats.live>
…stream#3773) * Update Sidebar membership display after edit tx (Joystream#3133) * remove unused variables Co-authored-by: Joystream Stats <dev@joystreamstats.live>
…stream#3773) * Update Sidebar membership display after edit tx (Joystream#3133) * remove unused variables Co-authored-by: Joystream Stats <dev@joystreamstats.live>
…stream#3773) * Update Sidebar membership display after edit tx (Joystream#3133) * remove unused variables Co-authored-by: Joystream Stats <dev@joystreamstats.live>
Scope
Some frontend items(marked red) did not update after the transaction was executed.
Member choosed for editing
![Снимок экрана 2022-05-26 в 14 14 04](https://user-images.githubusercontent.com/46903215/170480253-f98c88c1-02d9-4583-be3f-0ee6dd612660.png)
Editing
![Снимок экрана 2022-05-26 в 14 15 03](https://user-images.githubusercontent.com/46903215/170480314-7d13e2d7-e2ee-4e78-92e3-84b0f00f4c08.png)
Frontend after editing. The fields marked in red were not updated untill page refreshed.
![Снимок экрана 2022-05-26 в 14 20 27](https://user-images.githubusercontent.com/46903215/170480355-fd90209d-3b49-4d65-808a-ecb81c98d25a.png)
Transaction details
![Снимок экрана 2022-05-26 в 14 22 01](https://user-images.githubusercontent.com/46903215/170480375-4214ca3b-5221-4cd1-b65f-001833a25822.png)
The text was updated successfully, but these errors were encountered: