Comments (4)
I was able to eliminate this warning by changing line 218 of PresentationModifier.swift
:
- id: nil
+ id: store.id(state: \.self, action: \.self)
Could this cause any other issues? Looking at the history, when this code used to create a ViewStore
there was a comment that has since been removed:
// NB: Introducing a `\.self` cache key here prevents dismissal from working.
It would be worth seeing if this is still the case.
from swift-composable-architecture.
Hi @lukeredpath, I think that change would be a good one to make. Can you PR it? You could also make the change on line 254, but notably it cannot be made to line 266. But that's OK because that version of PresentationStore
is for when doing something like sheet(store:state:action:)
, which definitely does not play nicely with store caching due to the state
and action
transform functions.
from swift-composable-architecture.
@mbrandonw I'll open a PR - I'm not sure there is any value in adding it to line 254 either if you can't also give the destination store an ID (because there are no key/case key paths) because the destination is always going to be given a store that does not support caching anyway.
from swift-composable-architecture.
Feel free to leave it off.
from swift-composable-architecture.
Related Issues (20)
- Key path cannot refer to static member '....' Error HOT 1
- TCA holds on to state for longer than expected HOT 1
- Nested enum reducer error: cannot be constructed because it has no accessible initializers HOT 3
- ForEach<_StoreCollection<String, State, Action>, ObjectIdentifier, SingleTaskView>: the ID ObjectIdentifier(0x0000600003fe8b40) occurs multiple times within the collection, this will give undefined results! HOT 2
- Exhaustive testing @Shared variable mutating before action received HOT 2
- Extra Perception Warning HOT 1
- Non-main thread warning when calling using .refreshable from child @ViewBuilder property HOT 1
- Focus state doesn't work as described in the Building SyncUps Tutorial
- UUID creation not working as described in the SyncUps Tutorial HOT 2
- FileStorage persistence sometimes doesn't save data to disk. HOT 1
- Some texts not appearing correctly: body-8lumc
- SharedState with UserDefaults(suiteName:) not working properly HOT 3
- NSLock Memory leaks HOT 1
- CRASH: Could not cast value of type 'Observation.ObservationRegistrar' to 'Perception._PerceptionRegistrar' HOT 2
- SyncUps Tutorial: Removing attendee test does not pass HOT 1
- isPresented dependency: Incorrectly set to 'true' in tests. HOT 7
- 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
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.