canhorn/EventHorizon.Blazor.Interop

Trying to set a property to null results in error

diegofrata opened this issue · 0 comments

Description

Calling set with a null value causes an error.

EventHorizonBlazorInterop.Set(___guid, memberName, null);

Suggested Solution

A simple null check in the interop-bridge.js before looking up the cacheKey should suffice. Sometimes null is desired instead of a property being simply undefined.