Skip to content

Commit

Permalink
Wrapped rendered Story Component and reset context Information on cha…
Browse files Browse the repository at this point in the history
…nge to rebuild/rerender Component when Args changed
  • Loading branch information
leika committed Apr 5, 2023
1 parent b839a18 commit 9904cb1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/RenderContext.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
* @wrapper
*/
import { createRenderContext } from './context';
import { tick } from 'svelte';
export let Stories;
let exporttime = 0;
createRenderContext($$props);
$: {
createRenderContext($$props);
}
</script>

<svelte:component this={Stories}/>
{#key $$props.args}
<svelte:component this={Stories} />
{/key}

0 comments on commit 9904cb1

Please sign in to comment.