Skip to content

Modify before-request hooks to handle results for fastapi - #3986

Merged
T4rk1n merged 2 commits into
plotly:devfrom
BSd3v:patch-2
Sep 16, 2026
Merged

T4rk1n merged 2 commits into
plotly:devfrom
BSd3v:patch-2

Conversation

@BSd3v

@BSd3v BSd3v commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

For fastapi, the before hooks are a middleware insert.

Flask and Quart both allow for an early return when using before_request hooks, this just allows it to follow the same pattern.

Store the result of before-request hooks and return if not None.
@sonarqubecloud

Copy link
Copy Markdown

@T4rk1n T4rk1n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@T4rk1n
T4rk1n merged commit d08abba into plotly:dev Sep 16, 2026
36 of 37 checks passed
T4rk1n added a commit to mokashang/dash that referenced this pull request Sep 21, 2026
Condense the over-long Unreleased entries (shared storage, streaming,
React 19, compress_payload, and the long Fixed items) to at most two
lines each, per the changelog convention; deeper detail already lives in
.ai/ARCHITECTURE.md. Also fix a typo in the plotly#3986 entry and move the
Changed section above Fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants