From Extension into State question #1558
-
Hi there,
Because now, we are agree that we can have this kind of function:
Maybe i have just misunderstood something here. It is just for clarification to lead me to the correct mindset and be prepare for the incoming features. Thx for this awesome library. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
State is for sharing data that is the same for all routes, like database connection pools. For storing request local data like authorization you still need to use extensions. Otherwise the user would be shared between all requests which isn't what you want. |
Beta Was this translation helpful? Give feedback.
State is for sharing data that is the same for all routes, like database connection pools.
For storing request local data like authorization you still need to use extensions. Otherwise the user would be shared between all requests which isn't what you want.