Basic usage breaks in Nuxt SSR
See original GitHub issueFeathersVuex breaks on Nuxt SSR with the most basic usage.
$FeathersVuex.Todo
items load fine on client side (open root, then click the link to /todos
);
On server side (refresh /todos
), infinite recursion happens in toJSON
in feathers-vuex/lib/service-module/model.js:237
.
Steps to reproduce
See this repo/branch for a reproduction: https://github.com/Palivonas/feathers-vuex-bug-reproduction/tree/models-tojson-nuxt-ssr
FeathersVuex 1.7.0-pre.54
.
Node 10 and 8 tested, app created using create-nuxt-app
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Nuxt SSR breaks when updating data values - Stack Overflow
Nuxt SSR breaks when updating data values ... this error happes when I update a property value and some computed property uses that...
Read more >Server-side rendering with Vue and Nuxt.js - LogRocket Blog
Learn about server-side rendering (SSR) and client-side rendering (CSR), how its evolved, and how to use implement it with Nuxt.js and Vue.
Read more >Server Side Rendering - Nuxt
Server-side rendering (SSR), is the ability of an application to contribute by displaying the web-page on the server instead of rendering it in...
Read more >Vue to Nuxt: Server-Side Rendering Example
When we visit a page by entering the URL or refreshing it, we are getting the markup from the server (SSR). Now, when...
Read more >Server-Side Rendering with Nuxt.js Application - Medium
In this guide you get the answer to these questions and you will get to know all the differences between all SSR techniques...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yea. I agree. But I’m not sure what the default state is, of a JavaScript class with a getter only.
You can always do object.defineproperty with enumerable false to define the getter, which should make the property non enumerable and ignored by the merge function, and thus the toJSON method.
But we should confirm that it currently respects the same as JavaScript classes or that could be confusing.
Sweet. Well I can try to look at this at some point. Thanks for the reproduction repo @palivonas!