You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by "ourai (via GitHub)" <gi...@apache.org> on 2024/10/19 12:47:41 UTC

[PR] fix(ui): route plugins register failed [incubator-answer]

ourai opened a new pull request, #1140:
URL: https://github.com/apache/incubator-answer/pull/1140

   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](https://github.com/user-attachments/assets/74697fa2-f040-446e-865b-27a40f3e5e11)
   
   **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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ui): route plugins register failed [incubator-answer]

Posted by "robinv8 (via GitHub)" <gi...@apache.org>.
robinv8 commented on code in PR #1140:
URL: https://github.com/apache/incubator-answer/pull/1140#discussion_r1808285757


##########
ui/src/components/InitialLoadingPlaceholder/index.tsx:
##########


Review Comment:
   You can refer to the loading style here to ensure style consistency.
   https://github.com/apache/incubator-answer/blob/5f28f1068fdcf8eebb5170cde09a223711096887/ui/public/index.html#L82



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ui): route plugins register failed [incubator-answer]

Posted by "ourai (via GitHub)" <gi...@apache.org>.
ourai commented on code in PR #1140:
URL: https://github.com/apache/incubator-answer/pull/1140#discussion_r1809799970


##########
ui/src/components/InitialLoadingPlaceholder/index.tsx:
##########


Review Comment:
   > You can refer to the loading style here to ensure style consistency.
   > 
   > https://github.com/apache/incubator-answer/blob/5f28f1068fdcf8eebb5170cde09a223711096887/ui/public/index.html#L82
   
   Updated. ;-D



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ui): route plugins register failed [incubator-answer]

Posted by "robinv8 (via GitHub)" <gi...@apache.org>.
robinv8 merged PR #1140:
URL: https://github.com/apache/incubator-answer/pull/1140


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(ui): route plugins register failed [incubator-answer]

Posted by "robinv8 (via GitHub)" <gi...@apache.org>.
robinv8 commented on PR #1140:
URL: https://github.com/apache/incubator-answer/pull/1140#issuecomment-2425967387

   @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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@answer.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org