Re: [w3c/IndexedDB] [Cursor] got value flag. (#339)

The cursor's new values aren't "ready" until the `success` event fires (see #340).

> In addition the examples don't cover the case where something falsy is in the dataset, so presumably some other way of detecting EOF would be great.

If the `success` event fires on the request, and the request's `value` is null (rather than the cursor instance), then the end of the range has been hit. If you were holding the cursor, `cursor.request.value === null` would signal EOF, but again that's not valid to test until the `success` event fires.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/339#issuecomment-854009809

Received on Thursday, 3 June 2021 16:34:45 UTC