Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mutable app state example mentions web::Data which does not (any more) seem to exist #10

Closed
LeoniePhiline opened this issue Jun 28, 2024 · 1 comment · Fixed by #11
Closed

Comments

@LeoniePhiline
Copy link
Contributor

The mutable app state example at https://ntex.rs/docs/application#shared-mutable-state mentions web::Data.

Maybe web::types::State is meant?

Since what is being created is a plain struct, this could be reworded to // Note: App state created _outside_ HttpServer::new closure.

Please let me know if I misunderstood. If not, then I'll be happy to PR the fix.

@leon3s
Copy link
Member

leon3s commented Jul 10, 2024

Hey @LeoniePhiline, sorry for the late reply, i didn't get notified.
You're right web::types::State is meant!
You can open a pull request if you want!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants