Questions tagged [dexie]

Dexie.js is a minimalistic wrapper for IndexedDB

Dexie.js is a minimalistic wrapper for IndexedDB.

349 questions
13
votes
1 answer

InvalidStateError: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing with ios safari

I have issue since Aug 2020 and i still don't know how to reproduce, I am using dfahlander/Dexie.js to use browser indexedDB. This is sample of how i am using dexie:- import db from "./db"; import { useState, useEffect } from "react"; import axios…
Q8root
  • 1,243
  • 3
  • 25
  • 48
12
votes
2 answers

Using redux with a local database

I have an offline React web app where all data is stored locally in indexedDB. There is no server other than the file hosting for static assets. I am getting to the point where I am starting to look into using redux now but I am trying to understand…
vopilif
  • 1,211
  • 1
  • 13
  • 25
9
votes
1 answer

How to use Dexie.js inside of dedicated worker?

I have a function that fetch a JSON data via window.fetch and put it inside IndexedDB table via db.table.bulkPut(array_of_data). It takes more than 10 seconds to do that because of large amount of data and it blocks UI and makes UX bad. I have…
9
votes
1 answer

Write multiple where condition using Dexie.js

How can I write a where condition like the following using Dexie.js? field1=0 AND field2!='test' AND field3 IN(1,2,3,4) I tried this one but I got an…
Enricosoft
  • 869
  • 2
  • 10
  • 28
9
votes
1 answer

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode dexie.js

Can any one tell me what happen here when i call count() function of dexie.js: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at eval (eval at…
Anh Lam
  • 122
  • 1
  • 1
  • 7
8
votes
2 answers

Dexie.js - table.delete(id) not working for per-row deletion

i'm just starting out with Dexie, and I seem to be coming unstuck. I have a small database (less than 1000 rows), and i'm trying to delete each row one-by-one once I know that the row has been sent to a remote API. I can also successfully save to…
AndrewO
  • 1,105
  • 4
  • 16
  • 33
7
votes
1 answer

ConstraintError: Key already exists in the object store

I am working with React 16.3.2, Redux 4 and Dexie 2.0.3. when I am going to store data second time it throws this error message. Error: ConstraintError: Key already exists in the object store. return dispatch => { db.table …
MD Ashik
  • 9,117
  • 10
  • 52
  • 59
7
votes
2 answers

Dexie.js - how to join tables?

I'm currently using Dexie.js to store data locally. I have 3 different tables, that are joined with each other by using foreign keys. I managed to setup the schema and insert the corresponding data. However, when I want to retrieve the data, I…
uglycode
  • 3,022
  • 6
  • 29
  • 55
6
votes
2 answers

Local Storage using Dexie not staying persistent

I am using Dexie to access IndexedDB on a flash card maker project. I can manipulate the database as expected, and it stays in the database if I close and reopen the browser, but often when I open up the project after not working on it for a few…
LFdC
  • 61
  • 3
6
votes
2 answers

In dexie.js how can I obtain all records from a table?

In dexie.js, is there a way to obtain all records from a table? Currently I am using: dbTable.filter(() => true).then( ... ) It works but I am not sure, whether it's the right way.
LongHike
  • 4,016
  • 4
  • 37
  • 76
6
votes
0 answers

Update table in Dexie

I try to update a field named "Type" in indexedDB with Dexie var db = new Dexie("Commande"); db.version(1).stores({ commande: "++id,idClient,nomClient,idInterne,statut,Type" }); …
Xavier Sky
  • 551
  • 1
  • 5
  • 7
6
votes
1 answer

Errors with IndexedDB versions and Dexie.js

I´m starting with IndexedDB and to not reinvent the wheel I´m using Dexie.js https://github.com/dfahlander/Dexie.js I created the database, I added data and now I´m creating a generic function that get a CSV and populate the database in anothers…
john_smith_72
  • 61
  • 1
  • 3
6
votes
1 answer

Content script from Firefox add-on doesn't write to IndexedDB

I'm developing Firefox add-on which has some content scripts to save data to IndexedDB. Same code works perfectly fine in Chrome extension, but not in Firefox extension. On Firefox everything works fine until part where data has to be written to…
Nikola Stojaković
  • 2,257
  • 4
  • 27
  • 49
5
votes
2 answers

React - show hide two elements without flickering on page load

Edit. I rewrote the code to be even more minimalist. The below code is a spike test of my issue. Here is a video of the issue: https://i.stack.imgur.com/EhItK.jpg I have two components. The first component is named TextEditor (and it is a text…
William
  • 4,422
  • 17
  • 55
  • 108
4
votes
1 answer

How to sync IndexedDB with Firestore?

I am building a job portal for the web using React, Redux and Firebase/Firestore. I've completed all the features I needed except one. I want unregistered-users/job-seekers to be able to: Bookmark job posts. Keep the record of applied jobs. Keep…
cyonder
  • 852
  • 1
  • 15
  • 36
1
2 3
23 24