Skip to content

Conversation

@DominicGBauer
Copy link
Contributor

Description

Add usePowerSyncStatus hook to react package

Work Done

  • Added usePowerSyncStatus
  • Added testing to react package
  • Updated demo to use new hook
  • Removed unused imports from web SDK tests

How to test

  • Load react-supabase-todolist and make sure Wifi icon is changing is expected (i.e. online when connected and offline when disconnected)

@DominicGBauer DominicGBauer self-assigned this Apr 19, 2024
@Chriztiaan
Copy link
Contributor

Last thing I missed was adding an entry to the React package's readme. We have examples of all the other hooks there.
Tested, verified working.

Chriztiaan
Chriztiaan previously approved these changes Apr 22, 2024
rkistner
rkistner previously approved these changes Apr 22, 2024
@DominicGBauer DominicGBauer merged commit 385edf8 into main Apr 22, 2024
@DominicGBauer DominicGBauer deleted the feat/add-use-powersync-status branch April 22, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants