Interaction with the app through one device gets reflected on all other devices using the app #665
Unanswered
mnobeidat13
asked this question in
Q&A
Replies: 5 comments 16 replies
|
Forgot link? |
1 reply
|
I don't think I can see your interactions. Can you see mine session? Don you call |
5 replies
|
See, here I'm using a shared import flet as ft
class AppData:
search_results = "one"
data = AppData()
def main(page: ft.Page):
results = ft.Text()
query = ft.TextField()
def display_search():
results.value = f"Search results: {data.search_results}"
page.update()
def perform_search(e):
data.search_results = query.value
query.value = ""
display_search()
page.add(
ft.Row([query, ft.ElevatedButton("Search", on_click=perform_search)]), results
)
display_search()
ft.app(target=main, port=8550, view=ft.WEB_BROWSER)Run this example and in any new session (new tab or page in the browser) you'll be seeing the last search result. |
10 replies
|
I will see what I can do and if does not work i will share the code with you
…On Sun, 4 Dec 2022, 05:18 Feodor Fitsner, ***@***.***> wrote:
It would be great to have a simplified, public repro, so I can investigate.
—
Reply to this email directly, view it on GitHub
<#665 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHUIRS66T752ZFAV4TM67QLWLPWM3ANCNFSM6AAAAAASTAPFJU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
0 replies
|
@FeodorFitsner Hello again I also tried running it on fly.io but the docker image was too big for the free tier |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I deployed my app to replit.com. I open the app through two devices, my phone and my laptop. What happens is any interaction I do on either device gets reflected on the app opened in the other one.
I cant explain more and screenshots wont help any further I guess.
I dont know, but it seems that the app runs in one session.
I dont use any authintication nor I save user session (I font know if that is even possible).
This is a link to the app deployed on replit:
https://portfolio.mnobeidat.repl.co/#/item_recommendation
All reactions