[GH-ISSUE #3] Setting proxy property value to null #3

Closed
opened 2026-05-23 08:36:09 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @appy-one on GitHub (Mar 3, 2021).
Original GitHub issue: https://github.com/appy-one/acebase-core/issues/3

Originally assigned to: @appy-one on GitHub.

Crashes when setting a property value of a proxy object to null to delete it because the code attempts to access property [isProxy] on the null value.

To reproduce:

const defaultVal = { title: 'My chat', description: 'Some description' };
const proxy = await db.ref('chats/chat1').proxy(defaultVal);
const chat = proxy.value;
chat.description = null; // <-- Error

Current workaround:

delete chat.description;
Originally created by @appy-one on GitHub (Mar 3, 2021). Original GitHub issue: https://github.com/appy-one/acebase-core/issues/3 Originally assigned to: @appy-one on GitHub. Crashes when setting a property value of a proxy object to ```null``` to delete it because the code attempts to access property [isProxy] on the null value. To reproduce: ```js const defaultVal = { title: 'My chat', description: 'Some description' }; const proxy = await db.ref('chats/chat1').proxy(defaultVal); const chat = proxy.value; chat.description = null; // <-- Error ``` Current workaround: ```js delete chat.description; ```
gitea-mirror 2026-05-23 08:36:09 -06:00
Author
Owner

@appy-one commented on GitHub (Mar 3, 2021):

Fix published in acebase-core v1.1.1

<!-- gh-comment-id:789682157 --> @appy-one commented on GitHub (Mar 3, 2021): Fix published in acebase-core v1.1.1
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-core#3
No description provided.