Skip to content

@ui.refreshable decorators do not work when using native=True with Nicegui-pack #5259

@imrrobat

Description

@imrrobat

First Check

  • I added a very descriptive title here.
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

from nicegui import ui 

ui.lable('hi')

ui.run(native=True)

Description

Hi,

I've noticed that when I build a Nicegui application into an .exe using Nicegui-pack with native=True, the @ui.refreshable decorators stop working (with pyw format) . The UI does not update as expected.

Steps to reproduce:

Create a Nicegui app using @ui.refreshable.

Build the app with nicegui-pack build --native True.

Run the resulting .exe.

Observe that the refreshable components do not update.

Expected behavior:
The @ui.refreshable components should update as they do when running the app normally (python app.py).

NiceGUI Version

2.24

Python Version

3.12

Browser

Firefox

Operating System

Windows

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionStatus: Needs clarification from the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions