MCPcopy Create free account
hub / github.com/TanStack/devtools / BulkActions

Function BulkActions

examples/react/basic/src/package-json-panel.tsx:205–225  ·  view source on GitHub ↗
({ names }: { names?: Array<string> })

Source from the content-addressed store, hash-verified

203 }
204
205 const BulkActions = ({ names }: { names?: Array<string> }) => {
206 const { wantedList, latestList } = makeLists(names)
207 if (wantedList.length === 0 && latestList.length === 0) return null
208 return (
209 <div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>
210 {btn('All → wanted', () =>
211 (devtoolsEventClient as any).emit('upgrade-dependencies-bulk', {
212 list: wantedList,
213 } as any),
214 )}
215 {btn(
216 'All → latest',
217 () =>
218 (devtoolsEventClient as any).emit('upgrade-dependencies-bulk', {
219 list: latestList,
220 } as any),
221 'ghost',
222 )}
223 </div>
224 )
225 }
226
227 const renderDeps = (title: string, deps?: Record<string, string>) => {
228 const names = Object.keys(deps || {})

Callers

nothing calls this directly

Calls 3

makeListsFunction · 0.70
btnFunction · 0.70
emitMethod · 0.45

Tested by

no test coverage detected