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

ui: fix statements page crash #28108

Merged
merged 3 commits into from
Aug 1, 2018

Conversation

vilterp
Copy link
Contributor

@vilterp vilterp commented Jul 31, 2018

Release note (admin ui change): fix bug in which statements page blanks out after it reloads itself after a few minutes.

Includes introduction of render prop to Loading component. I don't have time for a major discussion and refactor right now, but I also can't stomach yet another stupid bug caused by Loading being the way it is right now.

Pete Vilter added 2 commits July 31, 2018 14:26
That way, you can pass a function to render your content which will only
get run if the data is finished loading. Thus, your content-rendering
function can assume that the data is loaded, which simplifies it.

It would be nice to migrate all usages at once, but we never seem to
find time to work on the loading component, and this moves the ball
forward a bit.

Release note: None
Use new render prop on Loading component so `renderStatements` is only
called when data is finished loading.

Release note (admin ui change): fix bug in which statements page blanks
out after it reloads itself after a few minutes.
@vilterp vilterp requested review from couchand and a team July 31, 2018 18:34
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@couchand
Copy link
Contributor

couchand commented Aug 1, 2018

Your commits LGTM, do you want to take a look at mine?

@vilterp
Copy link
Contributor Author

vilterp commented Aug 1, 2018

Looks good; thanks for doing the refactor! Next up, removing the spinner image prop… That was in your "more magical loading component" PR, right?

bors r+

craig bot pushed a commit that referenced this pull request Aug 1, 2018
28108: ui: fix statements page crash r=vilterp a=vilterp

Release note (admin ui change): fix bug in which statements page blanks out after it reloads itself after a few minutes.

Includes introduction of `render` prop to `Loading` component. I don't have time for a major discussion and refactor right now, but I also can't stomach yet another stupid bug caused by `Loading` being the way it is right now.

Co-authored-by: Pete Vilter <[email protected]>
Co-authored-by: Andrew Couch <[email protected]>
@craig
Copy link
Contributor

craig bot commented Aug 1, 2018

Build succeeded

@craig craig bot merged commit 03bfed9 into cockroachdb:master Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants