Interaction with the app through one device gets reflected on all other devices using the app #665
Replies: 5 comments 16 replies
-
Forgot link? |
Beta Was this translation helpful? Give feedback.
-
I don't think I can see your interactions. Can you see mine session? Don you call |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@FeodorFitsner Hello again I also tried running it on fly.io but the docker image was too big for the free tier |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions