You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Router::with_state mentions Extension as an alternative to State, but only after scrolling past 4 examples. extract::State doesn't mention Extension at all.
extensions are more modular, as they can be added to various handlers while keeping other handlers pure.
The text was updated successfully, but these errors were encountered:
Hi there! If I understand you correctly, you think it would be nice to mention the concept of Extension way earlier in the docs so that people reading it are made aware of their existence, as they can be a more suitable solution to their problem as relying on State?
I also think that the docs could be improved in that regard and would take a shot at it.
Router::with_state
mentionsExtension
as an alternative toState
, but only after scrolling past 4 examples.extract::State
doesn't mentionExtension
at all.extensions are more modular, as they can be added to various handlers while keeping other handlers pure.
The text was updated successfully, but these errors were encountered: