-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storybook] Issue when storybook hot reloaded #13
Comments
And I mapped
|
This does not happen when only fetch data from remote, which I actually want to skip in all subsequent updates / hot-reloads |
I have a similar issue! The table which is missing after refreshing the page is also not initialized after deleting indexDB. const database = new VuexORM.Database();
database.register(MetaInformation);
database.register(FormatIndex);
database.register(Annotation);
database.register(ClipContent);
database.register(Clip);
VuexORM.use(VuexORMLocalForage, {
database
});
const store = new Vuex.Store({
strict: true,
plugins: [VuexORM.install(database)]
});
and my Clip looks like that: export default class Clip extends Model {
static entity = "clip";
static fields() {
return {
id: this.uid(),
meta: this.hasOne(MetaInformation, "clipID"),
content: this.hasOne(ClipContent, "clipID")
};
}
}
Is this Plugin dead? |
I don´t know why yet but when I fetch the missing model in the |
Strange thing happening when I change and save store in story book. Not all data fetched from local store.
What I do:
where
data
is the response and DetailsPageModel looks likeIt works and looks like data stored in localstorage
And all registered correctly since data can be retrieved in a first run, store connected to storybook comonent:
And when code in store updated, hot reloaded performed, then this:
show
> prepareDetailsPageData: true
However the
DetailsPageModel.query().first()
does not return dependencies as it was before hot-reloadAll dependencies are null.
Any guesses how to fix it?
The text was updated successfully, but these errors were encountered: