(changes)
| 1994 | valueId |
| 1995 | ); |
| 1996 | const applyChanges = (changes) => fluentTransaction( |
| 1997 | () => ifTransformed( |
| 1998 | changes, |
| 1999 | () => ifNotUndefined( |
| 2000 | middleware[13], |
| 2001 | (willApplyChanges) => whileMutating(() => willApplyChanges(structuredClone(changes))), |
| 2002 | () => changes |
| 2003 | ), |
| 2004 | (changes2) => { |
| 2005 | objMap( |
| 2006 | changes2[0], |
| 2007 | (table, tableId) => isUndefined(table) ? delTable(tableId) : objMap( |
| 2008 | table, |
| 2009 | (row, rowId) => isUndefined(row) ? delRow(tableId, rowId) : objMap( |
| 2010 | row, |
| 2011 | (cell, cellId) => setOrDelCell( |
| 2012 | tableId, |
| 2013 | rowId, |
| 2014 | cellId, |
| 2015 | cell, |
| 2016 | void 0, |
| 2017 | true |
| 2018 | ) |
| 2019 | ) |
| 2020 | ) |
| 2021 | ); |
| 2022 | objMap( |
| 2023 | changes2[1], |
| 2024 | (value, valueId) => setOrDelValue(valueId, value) |
| 2025 | ); |
| 2026 | }, |
| 2027 | contentOrChangesIsEqual |
| 2028 | ) |
| 2029 | ); |
| 2030 | const setTablesJson = (tablesJson) => { |
| 2031 | tryCatch(() => setOrDelTables(jsonParse(tablesJson))); |
| 2032 | return store; |
nothing calls this directly
no test coverage detected
searching dependent graphs…