Skip to content

test: goofy react waterfall for warden#152

Closed
gricha wants to merge 9 commits intomainfrom
test/goofy-react-waterfall
Closed

test: goofy react waterfall for warden#152
gricha wants to merge 9 commits intomainfrom
test/goofy-react-waterfall

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 31, 2026

Summary

  • Intentionally bad change: adds a request waterfall by gating hostInfo query on workspaces
  • Testing that warden react-best-practices trigger catches it on PR

- Sequential fetch waterfall in useEffect instead of parallel queries
- Full lodash import instead of specific function
- Array index as key
- Inline style objects in map
- window.location.reload() as refetch
Comment on lines 209 to -212
})
}

const handleRowClick = (ws: WorkspaceInfo) => {

This comment was marked as outdated.

Comment thread web/src/pages/WorkspaceList.tsx Outdated
Comment on lines +190 to +200
setLoading(true)
try {
const workspaces = await api.listWorkspaces()
setWorkspaceData(workspaces)
const host = await api.getHostInfo()
setHostData(host)
} catch (e) {
setErr(e as Error)
} finally {
setLoading(false)
}

This comment was marked as outdated.

loadData()
}, [])

const refetch = () => window.location.reload()

This comment was marked as outdated.

@gricha gricha closed this Feb 1, 2026
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.

1 participant