Comments (7)
I'm not sure if fake rendering is really a good idea. Mocking sounds super fragile and I doubt it can be really that lightweight if we want to make sure things don't just break.
Maybe we can tackle this from a different perspective - is it possible to statically analyze and extract queries at build time (kinda like Relay Modern)?
from core.
Well, that's the approach taken by the official react-apollo (source). BTW it seems so much easier to do in React 😭
from core.
It looks quite fragile/hacky to me, and is essentially rendering the whole app twice... which means it decreases performance significantly... not sure if it's worth it at all.
That said it's totally possible in v3.
from core.
Also, it seems it cannot have nested components with queries. The walker stops when any component has async data. Still quite a limitation IMO.
from core.
Maybe we could make renderToString
asynchronous with ways to hook into it and do data prefetching and eventual secondary re-rerenders of components that prefetched some data?
from core.
BTW react-apollo switched to rendering the app multiple times: apollographql/react-apollo#2533
from core.
Closing in favor of #11
from core.
Related Issues (20)
- shorthand syntax for v-bind does not work for "name" property in slots
- Maximum recursive updates exceeded in component in 3.4.15 HOT 5
- Hydration style mismatch
- Custom elements that use vue components within have slot elements removed HOT 1
- Two-way `<input v-model>` binding loses downstream sync in child component HOT 3
- v-model causes different behavior to :value="value" @input="value = $event.target.value"
- [@vue/compiler-sfc] Failed to resolve import source HOT 1
- The License comment in the first lines got lost with vue3 HOT 2
- The arrow function is used in vuex, causing computed to fail to get the state in response HOT 1
- Uncaught (in promise) Maximum recursive updates exceeded in component <RouterView> HOT 7
- Reactivity maybe be broken with nested computed and vue-router HOT 9
- Default value of defineModel is not handled as a local ref HOT 1
- Donating Funds to Vuejs/Core HOT 1
- Generic props extending boolean should apply Boolean casting HOT 1
- Why is the length of the slot 0? HOT 1
- App crashes when using router-view in a top-level route target when there's a transition in the top level RouterView's slot
- keep-alive组件里面的变量storageContainer存在内存泄漏 HOT 4
- The register mismatch between display value in input and reactive variable HOT 9
- [SSR] Hydration error using v-bind in scoepd styles HOT 2
- Nested calls to `runWithContext` resets the app for the rest of the top `runWithContext` call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.