You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable id is evaluated as undefined.
Yes, this.brokerId is not being injected to fake instance. but this['broker-id'] has the right value ("1").
So i guess that createFakeInstance function dosen't transform kebab-cased attribute to camelCased attribute. In now, i just changed the name of prop from brokerId to id, then it works.
Wish to someone find out is this a real bug or am i doing something wrong.
Thanks.
The text was updated successfully, but these errors were encountered:
It seems that props are not being injected to fake instance properly while SSR.
Here is the component.
The component had given attribute
broker-id="1"
from template.When
vue-apollo/ssr
package try to prefetch the query below,The variable
id
is evaluated as undefined.Yes,
this.brokerId
is not being injected to fake instance. butthis['broker-id']
has the right value ("1").So i guess that
createFakeInstance
function dosen't transform kebab-cased attribute to camelCased attribute. In now, i just changed the name of prop frombrokerId
toid
, then it works.Wish to someone find out is this a real bug or am i doing something wrong.
Thanks.
The text was updated successfully, but these errors were encountered: