Skip to content

Conversation

@trullse
Copy link
Contributor

@trullse trullse commented Jul 15, 2025

There was a problem with both editing and creating suggestions. SuggestionsPage has didChangeDependencies method that calls injector init method. During injector init method, SuggestionRepository is recreated, but it is initialized only once, in SuggestionsPage init method. During SuggestionRepository initialization its suggestions behaviour subject is initialized. So when the repository is replaced, suggestions behaviour subject is not initialized with values (empty list) and refreshSuggestions method is not working as it should (cant find the suggestion to update in suggestions list).
Fixed with _isInitialized check

@trullse trullse requested a review from KirillSergeevich July 15, 2025 11:52
@KirillSergeevich KirillSergeevich changed the base branch from master to 0.5.2 July 16, 2025 07:11
@KirillSergeevich KirillSergeevich merged commit d771b3c into 0.5.2 Jul 16, 2025
1 check passed
@KirillSergeevich KirillSergeevich deleted the fix/suggestions-editing branch July 16, 2025 07:12
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.

2 participants