Skip to content
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

Dynamically added pn.bind components are loading forever if defer_load is True #5982

Closed
TheoMathurin opened this issue Dec 4, 2023 · 0 comments · Fixed by #6005
Closed
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@TheoMathurin
Copy link
Contributor

Panel 1.3.4

As the title implies, pn.bind components that are added to the layout after initial page render are forever loading.

import panel as pn
import panel.widgets as pnw

pn.extension(defer_load=True)


def square(x):
    return f'{x} squared is {x**2}'


def add_component(event):
    x = pn.widgets.IntSlider(name='x', start=0, end=100)
    content.append(pn.Column(pn.bind(square, x), x))


button = pnw.Button(name='Add component', on_click=add_component)
content = pn.Column(button)
content.servable()

No error is thrown.

loading_forever

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Dec 4, 2023
@philippjfr philippjfr added this to the v1.4.0 milestone Dec 4, 2023
@philippjfr philippjfr modified the milestones: v1.4.0, v1.3.5 Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants