Skip to content

Add devtool hook #3371

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

Merged
merged 6 commits into from
Jul 18, 2025
Merged

Add devtool hook #3371

merged 6 commits into from
Jul 18, 2025

Conversation

T4rk1n
Copy link
Contributor

@T4rk1n T4rk1n commented Jul 16, 2025

  • Add a new hook to add react/dash components to the devtool bar.
  • Fix allow_optional triggering a warning for not found input.
  • ExternalWrapper components can now target a base property out of the regular layout.

@@ -568,10 +569,20 @@ export function validateCallbacksToLayout(state_, dispatchError) {
function validateMap(map, cls, doState) {
for (const id in map) {
const idProps = map[id];
const fcb = flatten(values(idProps));
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm trying to guess what fcb stands for…

Copy link

Choose a reason for hiding this comment

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

flatten callbacks?

Copy link
Contributor

Choose a reason for hiding this comment

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

aahh... thanks

@gvwilson gvwilson added feature something new P1 needed for current cycle labels Jul 18, 2025
@gvwilson gvwilson requested a review from syl-oh July 18, 2025 13:09
@ndrezn
Copy link
Member

ndrezn commented Jul 18, 2025

@CNFeffery you may find this one interesting...

@T4rk1n T4rk1n merged commit ab73036 into dev Jul 18, 2025
10 of 12 checks passed
@T4rk1n T4rk1n deleted the devtool-hook branch July 18, 2025 17:18
@CNFeffery
Copy link
Contributor

CNFeffery commented Aug 1, 2025

@CNFeffery you may find this one interesting...

At present, there is no relevant introduction in https://dash.plotly.com/dash-plugins-using-hooks. Let's first understand the operation mechanism and usage form through the test cases involved in this PR🚀.

At present, the dash-hooks projects I'm trying to build are mainly based on hooks.index() (https://github.com/CNFeffery/awesome-dash-hooks). When it comes to hooks.devtool(), more types of hooks.XXX() methods can be used in combination.

@ndrezn
Copy link
Member

ndrezn commented Aug 1, 2025

Yep, @CNFeffery , no documentation yet as this is still early stages. But it will let users build hooks that add custom UI to the devtools bar for Dash developers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P1 needed for current cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy