Giter VIP home page Giter VIP logo

Comments (7)

vickorian avatar vickorian commented on May 27, 2024 3

@falkoschindler, @me21 seems to work. I'll run with this branch to make sure there aren't any major problems or weird bugs that i haven't seen yet.

pip install git+https://github.com/zauberzeug/nicegui@refs/pull/2867/head

from nicegui.

me21 avatar me21 commented on May 27, 2024 1

Sure. It is included in 1.4.24, right?

from nicegui.

falkoschindler avatar falkoschindler commented on May 27, 2024

Hi @me21, this reminds me of #2482. Could this be the same issue?

from nicegui.

me21 avatar me21 commented on May 27, 2024

@falkoschindler it's possible. The login page in the example is wrapped into @ui.page('/login') decorator.

from nicegui.

vickorian avatar vickorian commented on May 27, 2024

I'm in the same boat here. I'm wrapping the pages within a fastapi app and am noticing the same behavior where refreshes can solve the problem with every other refresh solving the problem. I checked the process handles and they are constant regardless of performance, so it's not spinning up any extra handles or dropping any handles there.

I have a resize function tied to an aggrid inside the @ui.page('/'), but when i attach a timer to it, i'm not seeing a refresh rate above what you would expect, so the ui.on('resize') at least is registering events correctly. So i'm guessing there's a function in the routing that isn't being handled correctly.

I have mine set up within a fastapi app and that index page is mapped with an async.
@ui.page('/')
async def index_page(...) -> None:

I thought it might have been in the wrapper, but if it was a miscode then the functionality would remain regardless of refreshes. removing the async from the page def doesn't solve the problem either.

Windows 10
python 3.9.18150.1013
NIceGUI 1.4.20.dev0

from nicegui.

falkoschindler avatar falkoschindler commented on May 27, 2024

@me21, @vickorian We're working on a fix for #2482, see PR #2867.
Maybe you can try it out and let us know if it resolves this issue as well?

from nicegui.

falkoschindler avatar falkoschindler commented on May 27, 2024

I'll close this issue, assuming it has been fixed with #2482 and PR #2867.

from nicegui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.