Vue-meta: Does not only support v8js engines?

Created on 12 Jan 2019  路  8Comments  路  Source: nuxt/vue-meta

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?

PR Welcome help wanted question

Most helpful comment

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

All 8 comments

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:

  1. Verify that you can still reproduce the issue in the latest version of vue-meta
  2. Comment the steps to reproduce it
    Issues that are labeled as 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lwansbrough picture lwansbrough  路  7Comments

iMomen picture iMomen  路  5Comments

Remcoman picture Remcoman  路  9Comments

hvalcourtSerdy picture hvalcourtSerdy  路  3Comments

derz picture derz  路  3Comments