stash icon indicating copy to clipboard operation
stash copied to clipboard

Race condition in registerRoute

Open WithoutPants opened this issue 1 year ago • 0 comments

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.

WithoutPants avatar Aug 12 '24 01:08 WithoutPants