dansmaculotte / dansmaculotte/nuxt-segment

Segment undefined in the context of a middleware

Open
#13 10 comments 0 reactions 1 assignee Claimed by @gaelreyrol View on GitHub
bug
Dominant language
JavaScript
Stars
20
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am trying to use segment from the context, in a middleware loaded from a layout and it does not work.

Segment undefined in the context in a middleware

```js
export default function({ app, $segment }) {
console.log($segment)
console.log(app.$segment)
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.