pull/16687/head
ComputerGuy 6 days ago
parent 3c9f49639c
commit 9d6e8548e2

@ -466,10 +466,10 @@ export function client_component(analysis, options) {
if (needs_store_cleanup) {
component_block.body.push(b.stmt(b.call('$$cleanup')));
}
if (needs_store_cleanup && component_returned_object.length > 0) {
component_block.body.push(b.return(b.id('$$pop')));
if (component_returned_object.length > 0) {
component_block.body.push(b.return(b.id('$$pop')));
}
}
if (analysis.uses_rest_props) {

Loading…
Cancel
Save