Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ViewStore #96

Merged
merged 4 commits into from
Aug 7, 2023
Merged

Implement ViewStore #96

merged 4 commits into from
Aug 7, 2023

Conversation

adityadaniel
Copy link
Contributor

Implement ViewStore for SwiftUI compatibility

Comment on lines 356 to 373
/// Initializes a structure that transforms a store into an observable view store in order to
/// compute views from store state.
///
/// > Warning: This initializer is deprecated. Use
/// ``WithViewStore/init(_:observe:removeDuplicates:content:file:line:)`` to make state
/// observation explicit.
/// >
/// > When using ``WithViewStore`` you should take care to observe only the pieces of state that
/// your view needs to do its job, especially towards the root of the application. See
/// <doc:Performance> for more details.
///
/// - Parameters:
/// - store: A store.
/// - isDuplicate: A function to determine when two `ViewState` values are equal. When values
/// are equal, repeat view computations are removed.
/// - content: A function that can generate content from a view store.
@available(
iOS,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove all deprecated things here, as this is new for RxTCA, wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here 5983021

@adityadaniel adityadaniel merged commit 57a73bd into main Aug 7, 2023
@adityadaniel adityadaniel deleted the feature/viewstore branch August 7, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants