From 48b04d9dc06f3f6190c8aafcb85ca12737634234 Mon Sep 17 00:00:00 2001 From: Jacob Scearcy Date: Fri, 19 Apr 2024 19:46:34 +1000 Subject: =?UTF-8?q?=F0=9F=94=80=20Add=20support=20for=20element=20fragment?= =?UTF-8?q?s.=20(#99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * #16 add fragment POC * WIP * 16 add fragment support to morph * add keys for fragments * ensure proper fragment order, refactor to handle fragment/element more similarly * fix comment typo, incorrect child typo, simplify key check * fix comment typo * add snapshot tests * flatten fragment using fold right, appending elements * doc update --------- Co-authored-by: Hayleigh Thompson --- ...ompute_a_diff_from_one_render_to_the_next_with_fragments.accepted | 5 +++++ ...nder_an_application's_initial_state_when_using_fragments.accepted | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 birdie_snapshots/can_compute_a_diff_from_one_render_to_the_next_with_fragments.accepted create mode 100644 birdie_snapshots/can_render_an_application's_initial_state_when_using_fragments.accepted (limited to 'birdie_snapshots') diff --git a/birdie_snapshots/can_compute_a_diff_from_one_render_to_the_next_with_fragments.accepted b/birdie_snapshots/can_compute_a_diff_from_one_render_to_the_next_with_fragments.accepted new file mode 100644 index 0000000..10e6efc --- /dev/null +++ b/birdie_snapshots/can_compute_a_diff_from_one_render_to_the_next_with_fragments.accepted @@ -0,0 +1,5 @@ +--- +version: 1.1.0 +title: Can compute a diff from one render to the next with fragments +--- +[[["0-2-0",{"content":"3"}]],[],[]] \ No newline at end of file diff --git a/birdie_snapshots/can_render_an_application's_initial_state_when_using_fragments.accepted b/birdie_snapshots/can_render_an_application's_initial_state_when_using_fragments.accepted new file mode 100644 index 0000000..d89dc7b --- /dev/null +++ b/birdie_snapshots/can_render_an_application's_initial_state_when_using_fragments.accepted @@ -0,0 +1,5 @@ +--- +version: 1.1.0 +title: Can render an application's initial state when using fragments +--- +

start fragment

middle fragment

0

order check, last element

\ No newline at end of file -- cgit v1.2.3