Skip to content
Discussion options

You must be logged in to vote

Like so often, I discover what's causing the problem right after posting a discussion, even though I spent an hour trying things while writing the discussion post 🙄

I needed to make this change in bootstrapDatabase()

    mutating func bootstrapDatabase() throws {
        defaultDatabase = try appDatabase()
        if context != .preview { // <-- exclude SyncEngine from previews
            defaultSyncEngine = try SyncEngine(
                for: defaultDatabase,
                tables: Issue.self, Tag.self, IssueTag.self
            )
        }
    }

and this one in appDatabase()

    private func appDatabase() throws -> any DatabaseWriter {
        /* ... */

        // MARK: - Database C…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by OddMagnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant