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

Race condition in registerRoute #5124

Open
WithoutPants opened this issue Aug 12, 2024 · 0 comments
Open

Race condition in registerRoute #5124

WithoutPants opened this issue Aug 12, 2024 · 0 comments

Comments

@WithoutPants
Copy link
Collaborator

Using the example react-component plugin, the registered route /plugin/test-react does not reliably work if the URL is entered or refreshed. I believe this is occurring because the PluginApi.register.route is being called after PluginRoutes is first rendered, and registering the route does not trigger a re-render. An alternative implementation for the register route functionality will need to be devised which will respond to new registrations after the initial render.

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

No branches or pull requests

1 participant