Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Ream 2.0 preFetch #59

Closed
FrancosLab opened this issue Sep 17, 2017 · 3 comments
Closed

Ream 2.0 preFetch #59

FrancosLab opened this issue Sep 17, 2017 · 3 comments

Comments

@FrancosLab
Copy link

Using the ream 2.0 beta, and preFetch does not seem to work, am I correct in assuming it is not supported yet? Could not seem to find the appropriate function calls.

@egoist
Copy link
Collaborator

egoist commented Sep 17, 2017

it's asyncData now

@FrancosLab
Copy link
Author

FrancosLab commented Sep 19, 2017

Figured it was asyncData after going through some of the codebase, however

[Vue warn]: Error in beforeCreate hook: "TypeError: Cannot redefine property: $asyncData"

File in question https://github.com/ream/ream/blob/fb2730d711d8c2c7fe65e453e7d8dfda03078955/packages/ream-renderer-vue/app/create-app.js

@FrancosLab
Copy link
Author

FrancosLab commented Sep 19, 2017

figured out that each top level component needs a name property, for asyncData function to properly run without the redefine property error, also this pull request fixes an error found regarding the setting of the asyncDataStore. ream/ream#60

@egoist egoist closed this as completed Feb 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants