isar / isar/hive

web.indexed_db: is `'read-write'` correct `mode` for `transaction`, or a mistake?

Open
#1,128 2 comments 0 reactions 1 assignee Claimed by @TheOneWithTheBraid View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

Hello,

In the source code, at [`~/hive/backend/js/web_worker.dart`](https://github.com/hivedb/hive/blob/master/hive/lib/src/backend/js/web_worker/web_worker.dart#L228),
`'read-write'` is being passed to `IDBDatabase.transaction(` function, which is,
- Neither mentioned at [MDN.IDBDatabase.transaction.parameters](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction#parameters),
- Nor found anywhere else in the source code, but, `'readwrite'` is, and is also mentioned in the docs.

**Question**
Is this behavior correct, or a mistype?

Thanking you,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.