-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improve handling of push token / profile updates #118
Conversation
6b1c4ba
to
9b6592b
Compare
@@ -86,9 +86,6 @@ struct KlaviyoReducer: ReducerProtocol { | |||
|
|||
state = initialState | |||
state.initalizationState = .initialized | |||
if let request = try? state.buildProfileRequest() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are no longer sending a request after initialization.
#if DEBUG | ||
fatalError(msg) | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
6aea95d
to
eb40c1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from just reading thru on GH
35ce83d
to
4051ca0
Compare
Description
The idea of this PR is to reduce the number of redundant request to the backend where possible. This PR also ensures that when token data is present that it gets assigned to the correct profile when identifiers change.
Other changes:
Check List
Manual Test Plan
Supporting Materials