You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: react to provider set after the first update #565
Found while fixing the docs previews (#445, PR 564). Some components read provider only on their first update, which runs before React sets the property on a server-rendered element. Set later, provider is ignored, so the component never loads data:
service-registry: services, service
TRS: tools
TRS-Filer: tool-create
The Cloud Registry form (#502) and the WES components handle a provider set after the first update. The docs previews work around it by passing baseUrl, which these components do react to.
Proposal
Make these components react to provider changes after the first update, as the Cloud Registry form and the WES components do, with a test for a provider set after the first render.
Activity