hunk.code_window:       const values = springs[i]
         setSprings(ctrl, values)
         // Update the default props.
         ctrl.start({ default: context })
         // Apply updates created during render.
         const update = updates[i]
  
hunk.labels: keep keep keep keep replace keep keep keep
hunk.after_edit:       if (hasContext) {
           ctrl.start({ default: context })
         }
  
hunk.file_path: packages/core/src/hooks/useSprings.ts
hunk.type: replace
file: import { ElementType } from 'react'
  import * as konva from 'react-konva'
  
  export type KonvaExports = typeof konva
  
  export type Primitives = {
    [P in keyof KonvaExports]: KonvaExports[P] extends ElementType ? P : never
  }[keyof KonvaExports]
  
  export const primitives: Primitives[] = [
    'Arc',
    'Arrow',
    'Circle',
    'Ellipse',
    'FastLayer',
    'Group',
    'Image',
    'Label',
    'Layer',
    'Line',
    'Path',
    'Rect',
    'RegularPolygon',
    'Ring',
    'Shape',
    'Sprite',
    'Star',
    'Tag',
    'Text',
    'TextPath',
    'Transformer',
    'Wedge',
  ]
  