saus icon indicating copy to clipboard operation
saus copied to clipboard

Let a deploy hook create multiple targets

Open aleclarson opened this issue 3 years ago • 1 comments

When a deploy hook has its explode method defined, it can derive multiple targets from its props/state.

// Must return an array of objects.
explode({ files }) {
  // Create a target for each file object.
  return files
}

aleclarson avatar Aug 24 '22 20:08 aleclarson

I'm open to other names for the method. I'm leaning toward split.

aleclarson avatar Aug 24 '22 20:08 aleclarson