David Fahlander

Results 557 comments of David Fahlander

Thanks for the input. New built-in features, like liveQuery was added in respect of tree-shakability. Old methods have been kept so far for backward compatibility. In my view, all the...

Thanks! This should also be filed in [Webkit bugzilla](https://bugs.webkit.org) along with the repro and the safari version. It would be something to workaround in Dexie until fixed in Safari. In...

Hi! There are various ways to solve this problem, but I prefer the one pattern that it is implemented i [postgres hierarchies (ltree)](https://www.postgresql.org/docs/9.2/static/ltree.html): Let me give an example of how...

Dexie is executed on the same machine as the db so you can implement it using a recursive sync function in JavaScript. But if utilizing an indexed parentPath, you'll retrieve...

I suppose that's an idea that would apply to many js libraries but my knowledge in webassembly and rust is too limited to make one. Would have been nice to...

There's a property `db.cloud.syncState` which is an instance of Rx' [BehaviorSubject](https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/subjects/behaviorsubject.md). If you are in ReactJS, you can consume the observable using react-use' [useObservable](https://github.com/streamich/react-use/blob/master/docs/useObservable.md). The properties of the result is...

The blob encapsulation is implemented in this file: https://github.com/dfahlander/Dexie.js/blob/master/addons/dexie-export-import/src/tson.ts I had do do it outside of typeson for the same reason, that it could not handle certain characters that got...

Question 1: The fallback to use localStorage when BroadcastChannel throws, will it actually work when cookies are disabled? I could assume that also localStorage would throw or at least not...

Scan the rows for typeof myBoolean. In case myBoolean would be an object or other type, the first callback would return the truthy value while the second would return a...

Check [these](https://dexie.org/docs/DexieErrors/Dexie.PrematureCommitError) docs. Let me know if it was of any help.