Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is possible to modify the state from js script? #409

Open
nicolalandro opened this issue Apr 30, 2024 · 0 comments
Open

It is possible to modify the state from js script? #409

nicolalandro opened this issue Apr 30, 2024 · 0 comments

Comments

@nicolalandro
Copy link

I want to implement a simple login, and I want to create two js function to read and write cookie.
I see that globalThis.core.getUserState() get the session state but how to set some variables?
Also a code like state.call_frontend_function("mymodule", "sendAlert", ["Bob"]) does return None and not what a js function can return.

Any suggestion for login implementation or in general to interact with js scripts? Must I create a component in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant