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
I tried to use Stencil-Apollo with codegen but somehow I'm completely lost. Generating works fine but somehow no queries are dispatched and stencil throws errors about vNode.
"vNode passed as children has unexpected type.
Make sure it's using the correct h() function.
Empty objects can also be the cause, look for JSX comments that became objects."
I have no idea what that means and how to fix this.
The documentation for stencil somehow stops at the most important point.
The documentation includes the component like this
But I have no clue how the ... should look like. How do I get the data from my query?
I have something like this, but that doesn't work at all
<SearchComponentvariables={variables}>{({ data })=>(<div>{data.searchPublicAssets.items.map((item)=>(<div>{item.name}</div>))}</div>)}</SearchComponent>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to use Stencil-Apollo with codegen but somehow I'm completely lost. Generating works fine but somehow no queries are dispatched and stencil throws errors about vNode.
I have no idea what that means and how to fix this.
The documentation for stencil somehow stops at the most important point.
The documentation includes the component like this
But I have no clue how the ... should look like. How do I get the data from my query?
I have something like this, but that doesn't work at all
Beta Was this translation helpful? Give feedback.
All reactions