Availability of DriftIsolate api on the web #2676
-
Hi, I am planning to use Drift for data persistence on an app I'm working on. The docs mention the availability of the DriftIsolate API, which allows accessing the same instance through multiple isolates. I was wondering whether this functionality is supported on the web too. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Isolates aren't supported on the web at all, so drift isolates can't be a thing on the web either. You can use a drift database on web workers though, and the recommended web setup also uses web workers to offload the database access onto a background worker. |
Beta Was this translation helpful? Give feedback.
Isolates aren't supported on the web at all, so drift isolates can't be a thing on the web either. You can use a drift database on web workers though, and the recommended web setup also uses web workers to offload the database access onto a background worker.