Comments (2)
Hi @larryonoff, this will be fixed in #3186.
We can't subscribe to the changes for just a single key in UserDefaults
because KVO treats "compound" keys (i.e. "foo.bar") in a special way, and it that breaks observation if you were ever to do .appStorage("feature.count")
. We have no choice but to subscribe to the firehose of all user default changes.
However, because user defaults can only store very basic data, we can implement some simple remove duplicates logic.
from swift-composable-architecture.
Hi @larryonoff, this will be fixed in #3186.
We can't subscribe to the changes for just a single key in
UserDefaults
because KVO treats "compound" keys (i.e. "foo.bar") in a special way, and it that breaks observation if you were ever to do.appStorage("feature.count")
. We have no choice but to subscribe to the firehose of all user default changes.However, because user defaults can only store very basic data, we can implement some simple remove duplicates logic.
Thanks for the fix. Looking forward to the new release with the latest fixes!
PS. Sad that it's not possible to fix the issue in an optimal way.
from swift-composable-architecture.
Related Issues (20)
- Using both Sharing Data and backward-compatible NavigationLink seems to create some strange behaviors. HOT 1
- Incorrect Confirmation Dialog Presentation on iPad HOT 1
- Ios 17 TextField Binding Issue HOT 1
- Stack overflow crash on physical device HOT 1
- Over-Observation with enum based State HOT 1
- Over-Observation with @Shared-state HOT 1
- @Shared publisher extra emissions only on macOS previews HOT 1
- @Shared can trigger a view update from a thread other than the main thread, which sometimes causes crash HOT 1
- NavigationStack path doesn't retain correct detail view when reordering a list with NavigationLinks HOT 2
- WithPerceptionTracking doesn't response on @AppStorage property change HOT 2
- Delay in Reopening Sheet After Dismissal HOT 1
- Too many cases in path enum HOT 1
- partial apply for closure #2 in _DependencyKeyWritingReducer.reduce(into:action:) HOT 2
- NavigationStack inside sheet appends first destination without transition on iOS 16 HOT 1
- View not updating with shared store and form HOT 3
- Swift Testing - Tests should fail with TestStore but aren't failing HOT 3
- The child of IfLetStore doesn't update together with the store. HOT 1
- Setter for 'subscript(dynamicMember:)' is unavailable HOT 2
- Crash when writing to user defaults in background thread HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-composable-architecture.