ContentHubUI: Must not load data until it's used

Description

Background

Loading all the content hub data before actually using the content hub causes a lot of unnecessary load on the servers.

Acceptance Criteria

1. The hub client should not send any search requests before the content tab is clicked.

Acceptance Criteria

None

Activity

Show:
Erik Langhaug
September 23, 2020, 11:07 AM

Great, seems to do the trick.

Erik Langhaug
September 23, 2020, 11:20 AM

Actually, seems to have introduced some propTypes validation errors since components that expect promises via props now get undefined. I believe I’ve patched it with this:

Pål Jørgensen
September 23, 2020, 12:07 PM

Good catch, Thanks for fixing.

Assignee

Pål Jørgensen

Reporter

Frode Petterson

Labels

Funding

None

Code reviewer

Erik Langhaug

Released

None

Time tracking

4h

Sprint

None

Priority

Medium
Configure