canjs / can-query-logic

Perform data queries and compare queries against each other. Provides logic useful for data caching and real-time behavior.

Home Page:https://canjs.com/doc/can-query-logic.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missed schema on helper.index

cherifGsoul opened this issue · comments

if prop doesn't have can.getSchema symbol it throws an error in this line:

var identity = canReflect.getIdentity(props);

The solution might be passing schema argument to helpers.index.
The use-case that causes this issue is can-connect tests on the update function.
in this line:
https://github.com/canjs/can-connect/blob/513064178e1b229349cc219949aa69380c871a52/real-time/real-time.js#L499