8000 [docs] Example of how to use Koa's ctx.state within a vue · Issue #321 · clarkdo/hare · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[docs] Example of how to use Koa's ctx.state within a vue  #321
Open
@renoirb

Description

@renoirb

Or rather some more notes about how to make Koa/Nuxt collaborate outside of using an HTTP axios request.

I see we can use ctx.session and use have it passed back when we do this.$axios from a page asyncData/fetch method.

But mostly this is about hinting and/or leaving notes to show how one thing is done (or called) in this stack

  • "Flash" messages... to client side from a Koa route
  • How to send log messages (ctx.log.info from a router?)
  • how one route is protected compared to another
  • How is this different from using Nuxt's serverMiddleware
  • a model implementation sample, can be a plain js object like I've done for translation
  • finish up examples written in TypeScript with full async/await implementation and full use of Vuex
  • What else...?
This question is available on Nuxt.js community (#c4)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0