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'm currently investigating whether webc can help us in our project and came across the following challenge:
I want to write a component that initially displays data coming from an API. This component has a button to display more data (think pagination) when pressed.
I was successful with putting <script webc:setup> in my component – the script handles fetching the data from the API and it works perfectly when I compile that component. However, the compiled result does not include the data fetching script anymore. I don't want to duplicate the whole code in a second script tag, and I haven't found a way for isomorphic javascript in my component. Does webc have functionality for this?
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
-
I'm currently investigating whether webc can help us in our project and came across the following challenge:
I want to write a component that initially displays data coming from an API. This component has a button to display more data (think pagination) when pressed.
I was successful with putting
<script webc:setup>
in my component – the script handles fetching the data from the API and it works perfectly when I compile that component. However, the compiled result does not include the data fetching script anymore. I don't want to duplicate the whole code in a secondscript
tag, and I haven't found a way for isomorphic javascript in my component. Does webc have functionality for this?Beta Was this translation helpful? Give feedback.
All reactions