MCPcopy Create free account
hub / github.com/electric-sql/electric / init

Function init

examples/encryption/src/Example.tsx:99–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 // all the items on any change but just to demonstate the decryption ...
98 useEffect(() => {
99 async function init() {
100 const items = await Promise.all(
101 rows.map(async (row) => await decrypt(row))
102 )
103
104 setItems(items)
105 }
106
107 init()
108 }, [rows])

Callers 1

ExampleFunction · 0.70

Calls 2

decryptFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected