LokiDB icon indicating copy to clipboard operation
LokiDB copied to clipboard

Autoupdate Collection with Proxy

Open Viatorus opened this issue 7 years ago • 2 comments

I'm submitting a...


[x] Feature request

Current behavior

I removed the deprecated function Object.observe from LokiDB.

Expected behavior

Investigate if Proxy could be an alternative to Object.observe so that Collection autoupdate works like in LokiJS.

Viatorus avatar Apr 11 '18 05:04 Viatorus

Object.observe functionality via native Proxy objects: https://github.com/gullerya/object-observer

gut4 avatar Sep 29 '18 14:09 gut4

Thank you for the suggestion.

I think your library has too much features/overhead for us because it tracks what changed and how. We just need a notification that something has changed. But we will surely use this as a technical help because it uses proxies with nested property support.

Viatorus avatar Nov 06 '18 07:11 Viatorus