Skip to content

@expressify puts shinylive into a strange state #1042

@wch

Description

@wch

In the dev version of Shinylive, @expressify puts it in a strange state where it doesn't seem to recognize changes to the function body.

For example, with this app, if you change the body of the card function and restart the app, the card doesn't change.

Live example

from shiny.express import expressify, render, ui

@expressify
def card(i: int):
    with ui.card():
        with ui.span():
            "This is card "
            ui.span(str(i), style="color: red;")

card(1)
card(2)
expressify-shinylive-half.mp4

Although the problem is happening in Shinylive, I think that's probably just a symptom of a deeper issue that's in the implementation of expressify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions