invisible-college / statebus

All aboard the STATEBUS!!!
117 stars 5 forks source link

Fetching null through proxy does not work #36

Open karth295 opened 6 years ago

karth295 commented 6 years ago

In JS console, for example:

> sb['hello'] = null
null
> sb['hello']
client6.js:1 Uncaught TypeError: Cannot use 'in' operator to search for '_' in null
  at Object.get (https://stateb.us/client6.js:1:13039)
  at <anonymous>:1:3
toomim commented 6 years ago

Thank you!

toomim commented 6 years ago

What's the priority on this?

The proxy interface is in need of a total redesign and rewrite. I could wait to fix this until then, or I could fix it now. It's probably not too hard. Also I think you're using an old version of the proxy interface, but I checked and the new one has this bug too.

karth295 commented 6 years ago

Low priority -- I've fixed this in the past but it cropped back up. I'm just fetching/saving undefined instead