Skip to content

Add devtool hook - #3371

Merged
T4rk1n merged 6 commits into
devfrom
devtool-hook
Jul 18, 2025
Merged

Add devtool hook#3371
T4rk1n merged 6 commits into
devfrom
devtool-hook

Conversation

@T4rk1n

@T4rk1n T4rk1n commented Jul 16, 2025

Copy link
Copy Markdown
Contributor
  • 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.

function validateMap(map, cls, doState) {
for (const id in map) {
const idProps = map[id];
const fcb = flatten(values(idProps));

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.

I'm trying to guess what fcb stands for…

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

flatten callbacks?

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.

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

ndrezn commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

@CNFeffery you may find this one interesting...

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

CNFeffery commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

@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

ndrezn commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

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