Skip to content

Commit

Permalink
Refactor WMDatabaseBridge to use runOnJSQueueThread
Browse files Browse the repository at this point in the history
This change replaces getJSMessageQueueThread().runOnQueue() with runOnJSQueueThread() to improve readability and consistency with updated APIs.

Co-authored-by: @dppo <[email protected]>
  • Loading branch information
limbo56 and dppo committed Jan 14, 2025
1 parent c3f55bc commit 208fc12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public WritableArray getRandomBytes(int count) {
public void invalidate() {
// NOTE: See Database::install() for explanation
super.invalidate();
reactContext.getJSMessageQueueThread().runOnQueue(() -> {
reactContext.runOnJSQueueThread(() -> {
try {
Class<?> clazz = Class.forName("com.nozbe.watermelondb.jsi.WatermelonJSI");
Method method = clazz.getDeclaredMethod("onCatalystInstanceDestroy");
Expand Down

0 comments on commit 208fc12

Please sign in to comment.