Identifying Async Functions in Your Code

How can I know what function is doing async work ? I've this error in my code (sometimes) :

Fiber #5753 cannot be resolved synchronously. This is caused by using runSync on an effect that performs async work


this error happens randomly (I mean, I have this error, I reload my page and it's gone)

Basically this is what I do with runSync when I search in all my codebase:
- create queues with Queue.unbounded<>
- get subscription ref: SubscriptionRef.get
- create a subscription ref (via make)
- read from local storage using the key value store :
  const store = yield* KeyValueStore.KeyValueStore; // key value store can be localstorage or in memory during ssr
  const storeValue = yield* store.get(key);


- updateAndGetEffect on a subscriptionRef
Was this page helpful?