Did the MiddlewareHandlerContext-state change? #1496
-
I used to assign my state-object directly to ctx.state = {
foo: 'bar'
} but since 1.2 or 1.3 I can only assign to properties of ctx.state.foo = 'bar'
// or
ctx.state.data = {
foo: 'bar'
} Assigning an object leads to I haven't seen this documented and am not sure whether it is intended? |
Beta Was this translation helpful? Give feedback.
Answered by
marvinhagemeister
Jul 21, 2023
Replies: 1 comment
-
No, this is not intentional and is a bug. Made an issue from that #1497 . |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marvinhagemeister
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, this is not intentional and is a bug. Made an issue from that #1497 .