Repository navigation
Conversation
Document every hook on the public dash.hooks API with what the function receives, what it returns, and an example, plus a class docstring on plugin loading, priority and final hooks. Fixes #3979
Explain where the index page meta tags come from, their order, how defaults are overridden and how values are escaped. Replace the copied Dash() constructor parameter list with a pointer to dash/dash.py so it cannot drift. Fixes #4051
Contributor
Dash performance benchmarks✅ all within thresholds
growth = late-third / early-third per-op time; ~1 is flat, a large value means the per-op cost scales with accumulated state. machine scale vs baseline: 0.59x - divided out of the baseline ratios so they compare like for like (the absolute warn/fail ceilings are left un-scaled); calibrated on |
The redirect route was registered under requests_pathname_prefix, but the server receives requests under routes_pathname_prefix. Behind a proxy that strips the prefix, like the DE workspace, the redirect returned 404. The target was also prefixed twice, since the backends already apply get_relative_path, so url_base_pathname apps redirected to /app/app/<page>. Fixes #3549
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Bundles four small fixes, one commit each.
dash.hooksnow says what its function receives and returns, with an example. The class docstring covers plugin loading through thedash_hooksentry point,priorityandfinal.test_hook013keeps the public hook API documented..ai/ARCHITECTURE.mdnow explains where the tags come from, their order, how defaults are overridden and how values are escaped. The copiedDash()constructor parameter list is replaced by a pointer todash/dash.pyso it cannot drift.redirect_fromwith a path prefix (fixes [BUG]-Pages redirection doesn't on DE workspace #3549): the redirect route was registered underrequests_pathname_prefix, but the server receives requests underroutes_pathname_prefix. Behind a proxy that strips the prefix (DE workspace) it returned 404. The target was also prefixed twice, sourl_base_pathname="/app/"redirected to/app/app/<page>. Checked on Flask, FastAPI and Quart.test_pare004covers both cases.use_pages=Truein Jupyter (fixesjupyter_mode='external'doesn't work withuse_pages=True#3132):_module_name_is_packageread__main__.__file__, which a Jupyter kernel's__main__does not have.test_pala008runs a pages app from a bare__main__.New tests fail before their fix and pass after. All tests in
tests/integration/multi_pageandtests/integration/test_hooks.pypass headless.