Skip to content

Commit

Permalink
Update custom application to shared instance (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif authored Dec 12, 2023
1 parent b1639ff commit fed0650
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/AppState/Application/Application+public.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public extension Application {

let cache = shared.cache
shared = customApplication.init()
customApplication.shared = shared

for (key, value) in cache.allValues {
shared.cache.set(value: value, forKey: key)
Expand Down

0 comments on commit fed0650

Please sign in to comment.