Skip to content

Make the Page Info refresh upon changes #116

@Devanshu24

Description

@Devanshu24

The information on most pages is gathered by the mounted code
But upon change of data in the DB, it is not refreshed
So make the mounted code into an explicit method (say mountedMethod) and then call that on mounting and also on data refresh

For context:

//Refresh the page for new data
this.user = (
await axios.get(
`/admin/super/users/searchById/?q=${this.$route.params.user_id}`
)
).data;
const courses = this.user.courses.map(async (course_id) => {
return (await axios.get(`/admin/super/courses/${course_id}`)).data;
});
this.courses = await Promise.all(courses);
},

I haven't put all the details so feel free to ask more clarification

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions