Skip to content

Commit b8fc138

Browse files
committed
chore: remove old todos
1 parent 76e1527 commit b8fc138

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/database/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ import { getInitialValue } from '../ssr/initialState'
4242

4343
export { databasePlugin } from './optionsApi'
4444

45-
// TODO: if we allow passing them locally, we could also add the create and reset to allow creating other data structures like a Map
46-
47-
const ops: OperationsType = {
48-
set: (target, key, value) => walkSet(target, key, value),
49-
add: (array, index, data) => array.splice(index, 0, data),
50-
remove: (array, index) => array.splice(index, 1),
51-
}
52-
5345
export interface UseDatabaseRefOptions extends _DatabaseRefOptions {}
5446

5547
export function _useDatabaseRef(
@@ -114,12 +106,6 @@ export function _useDatabaseRef(
114106
}).finally(() => {
115107
pending.value = false
116108
})
117-
118-
// TODO: SSR serialize the values for Nuxt to expose them later and use them
119-
// as initial values while specifying a wait: true to only swap objects once
120-
// Firebase has done its initial sync. Also, on server, you don't need to
121-
// create sync, you can read only once the whole thing so maybe _useDatabaseRef
122-
// should take an option like once: true to not setting up any listener
123109
}
124110

125111
let stopWatcher = noop

0 commit comments

Comments
 (0)