Skip to content

Conversation

DominicGBauer
Copy link
Contributor

@DominicGBauer DominicGBauer commented Sep 20, 2024

Description

Implement new powersync_clear() function and update hasSynced status in disconnectAndClear.

Work Done

  • Replaced old clearing implementation with the new powersync_clear() in disconnectAndClear function. This required a change to the dialect module to include powersync_clear as a valid type and the PowerSync.sq file used to load the custom PowerSync functions as queries in the persistence module.
  • Added an update to the currentStatus to update hasSynced to false and lastSynced to null

Video

Screen.Recording.2024-09-20.at.15.53.54.mov

@DominicGBauer DominicGBauer self-assigned this Sep 20, 2024
@DominicGBauer DominicGBauer marked this pull request as ready for review September 20, 2024 13:55
@DominicGBauer DominicGBauer merged commit 4b5f09c into main Sep 20, 2024
3 checks passed
@DominicGBauer DominicGBauer deleted the chore/disconnect-and-clear-function-change branch September 20, 2024 18:22
@DominicGBauer DominicGBauer changed the title chore: add changes to disconnectAndClear feat: add changes to disconnectAndClear Sep 21, 2024
@DominicGBauer DominicGBauer changed the title feat: add changes to disconnectAndClear chore: add changes to disconnectAndClear Sep 21, 2024
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.

2 participants