Code Monkey home page Code Monkey logo

Comments (4)

dfahlander avatar dfahlander commented on June 15, 2024 1

You're right. I've found the reason and will release a new version today.

from dexie.js.

dfahlander avatar dfahlander commented on June 15, 2024 1

@franleng thanks! The new release 4.0.1-beta.5 should probably be a better as long as the querier only performs pure read queries only and does not have any side effects (like setting state of another component, mutating DOM etc). The same principle goes for 3.2.4, but the difference is that it will not complain when it happens.

Let me know if you'd have a chance to try 4.0.1-beta.5 just to verify the problem goes away. If not, check whether your callback to liveQuery() may have side effects or write to the DB. If still any issue, I'd be happy to troubleshoot it.

from dexie.js.

frankleng avatar frankleng commented on June 15, 2024

@dfahlander still getting this consistently

Error\n    at getErrorWithStack (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:317:12)\n    at new DexieError (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:416:19)\n    at Object.transaction (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:4489:27)\n    at Transaction.create (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:2680:32)\n    at eval (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:4040:23)\n    at eval (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:1167:23)\n    at callListener (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:890:19)\n    at endMicroTickScope (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:964:25)\n    at eval (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:946:34)\n    at usePSD (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:1154:16)\n    at physicalTick (webpack-internal:///../../node_modules/.pnpm/[email protected]/node_modules/dexie/dist/modern/dexie.mjs:945:5)"

ReadOnlyError: Readwrite transaction in liveQuery context. Querier source: async ()=>{
     //.....
    }

from dexie.js.

frankleng avatar frankleng commented on June 15, 2024

reverted back to 3.2.4 for now.
thank u for the hardwork!

from dexie.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.