pixiebrix-extension
pixiebrix-extension copied to clipboard
Google Sheet selector widget not refreshing after creating a Google configuration
Describe the bug
Google Sheet selector widget not refreshing after creating/selecting Google configuration
To Reproduce
Steps to reproduce the behavior:
- Click to activate a mod using Google sheets
- Create a new Google configuration
Actual behavior
Google Sheet selector doesn't populate after selecting the Google configuration
Expected behavior
Google Sheet selector refreshes when you select a Google configuration and/or change the Google Configuration
Workaround
- Refresh the page
Related Code
- https://github.com/pixiebrix/pixiebrix-extension/blob/72334200b17050bde676dbf234650f147f53ac8a/src/contrib/google/sheets/ui/SpreadsheetPickerWidget.tsx#L40-L40
- https://github.com/pixiebrix/pixiebrix-extension/blob/72334200b17050bde676dbf234650f147f53ac8a/src/contrib/google/sheets/core/useGoogleAccount.ts#L32-L32
Discussion
- Is useGoogleAccount still returning null after the configuration is created?