Skip to content

[OTHER] Two tabs on the same browser share state #2711

@JaniKallankari

Description

@JaniKallankari

📌 What would you like to share or ask?

Hi,

How to fix code bellow so that toggle_state is not shared between browser tabs:

import taipy.gui.builder as tgb
from taipy.gui import Gui

toggle_state = False

with tgb.Page() as page:
    tgb.toggle("{toggle_state}",label="Test")
    
if __name__ == "__main__":
    pages = {"/": page}
    gui = Gui(pages=pages)
    gui.run(title="Toggle test")

📜 Code of Conduct

  • I have checked the existing issues to avoid duplicates.
  • I am willing to work on this issue (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions