isographlabs / isograph

The UI framework for teams that move fast — without breaking things.
MIT License
245 stars 16 forks source link

pass onCompleted to useImperativeReference (etc) #245

Closed rbalicki2 closed 2 days ago

rbalicki2 commented 1 week ago

useImperativeReference should take an onCompleted. Anything that takes a FetchOptions should probably take an onCompelted.

These APIs should take objects instead of separate params as well, e.g.

  loadFragmentReference: (
    variables: ExtractParameters<TReadFromStore>,
    options: { fetchOptions?: FetchOptions, onCompleted?: () => void }
  ) => void;

etc

rbalicki2 commented 2 days ago

closed by 71ffc760f69554f462fc404c72c9c60d8ff26774