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

Navigation information in Luigi Client API #3615

Open
pawelkarwat opened this issue Jan 23, 2024 · 1 comment
Open

Navigation information in Luigi Client API #3615

pawelkarwat opened this issue Jan 23, 2024 · 1 comment

Comments

@pawelkarwat
Copy link

Description

I would like it to be possible in Luigi Client to access the dirty status, for example, by calling:
LuigiClient.uxManager().getDirtyStatus()

Reasons

We are implementing navigation in the microfrontend based on Angular routing and need information on whether we can navigate. Additionally, I have a question about whether other factors, aside from the dirty status, can prevent navigation in Luigi.

@walmazacn
Copy link
Contributor

In Luigi 2.1.0 we added a getDirtyStatus method that allows you to check if there are unsaved changes in the browser through Luigi Core. You can find more information in the Luigi Core API documentation
This method can be used together with setDirtyStatus which is a part of the Luigi Client API
Let me know if this method is sufficient for you

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

2 participants