update config defaults dataset.packed and log_peak_memory_stats
Most configs dont have dataset.packed exposed. We should set it to:
dataset: packed=False # Set to true for great speed ups
Also, we dont log peak memory by default. If it has no impact in TPS, we should set it to True
log_peak_memory_stats=True
also add compile=False to configs that dont have them
@andrew-pledge-io if it helps... what we often end up having to do is declare the variant and make an additional Connect statement, like:
figma.connect(MyButton, 'https://www.figma.com/design/ABC123', {
variant: { hasIcon: true },
props: { ...otherProps },
example: (props) => <MyButton {...props}>My button</MyButton>,
});
figma.connect(MyButton, 'https://www.figma.com/design/ABC123', {
variant: { hasIcon: false }
props: { ...otherProps },
example: (props) => <MyButton hasIcon={false} {...props}>My button</MyButton>,
});
Hey @andrew-pledge-io @ericandrewscott, you're right that we don't currently offer a way to express this in the React API. I'll discuss how we might solve this this with the team!
+1, it's been almost a year