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

fix(ui): route plugins register failed #1140

Merged
merged 5 commits into from
Oct 22, 2024

Conversation

ourai
Copy link
Contributor

@ourai ourai commented Oct 19, 2024

Hello, I'm working on developing a route Standard UI Plugin.

When I try to debug with back-end services, I found that my plugin registered failed.

The reason is that execution order is wrong, just like below:

image

The function that merge dynamic routes into pre-defined routes should be executed after the HTTP request was done.

So, I make the initialization of router as "lazy" mode.

@ourai ourai force-pushed the wallet-connector-plugin branch from 2488f58 to b89d021 Compare October 19, 2024 13:44
@fenbox fenbox requested a review from shuashuai October 21, 2024 02:35
@robinv8 robinv8 self-requested a review October 21, 2024 02:57
@shuashuai shuashuai removed their request for review October 21, 2024 02:59
@robinv8
Copy link
Contributor

robinv8 commented Oct 21, 2024

@ourai Hello, thank you for sharing. It gave me inspiration. I refactored the internal logic of PluginKit. There is no need to introduce Event at present, so I removed it.

At present, I only need to modify the loading style.

@robinv8 robinv8 merged commit 9fa6ef6 into apache:dev Oct 22, 2024
@ourai ourai deleted the wallet-connector-plugin branch October 22, 2024 07:21
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

Successfully merging this pull request may close these issues.

2 participants