I would like to perform meta tag operations on server side rendering in v8js using your package.
I first started following your SSR guide.
However, there was a problem with the following sources: [batchUpdate] https://github.com/declandewet/vue-meta/blob/master/src/client/batchUpdate.js)
The problem occurred with an undefined timer-related function.
clearTimeout and setTImeout are only provided in the web API and nodejs.
Is there a solution to this problem?
Never used v8js. Feel free to send in a PR!
During SSR the timeout functions shouldnt be called as they are client side only, this might have been a packaging issue because there was only an umd build which always included batchUpdate even though batchUpdate would never be called on SSR.
Starting with vue-meta 2.0 this should be more separated, so please try again once v2.0 has been released
Oh, I don't know why I closed this issue....
I haven't found a decent solution yet.
Have you tried it with vue-meta v2?
There is still a timeout being used to try to batch/debounce fast occuring updates: https://github.com/nuxt/vue-meta/blob/master/src/client/update.js
I am looking into another way of doing the updates (current solution is not really optimal performance wise), but can take a while for that to materialize
Thanks for your contribution to vue-meta! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you would like this issue to remain open:
pending will not be automatically marked as stale.vue-meta v2.3 introduces a debounceWait property. If you set this to 0, then there wont be any timeout called and the meta info update is run immediately
@pimlie Thanks, It's awesome!! This works very well.
Most helpful comment
vue-meta v2.3 introduces a
debounceWaitproperty. If you set this to0, then there wont be any timeout called and the meta info update is run immediately