Skip to content

Bug 2039662 - Added a preload on summary settings on summarization#256

Open
fmasalha wants to merge 1 commit into
mozilla-firefox:autolandfrom
fmasalha:summarizationPreload
Open

Bug 2039662 - Added a preload on summary settings on summarization#256
fmasalha wants to merge 1 commit into
mozilla-firefox:autolandfrom
fmasalha:summarizationPreload

Conversation

@fmasalha
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

@fmasalha
Copy link
Copy Markdown
Contributor Author

)
)
}
LaunchedEffect(Unit) { settingsStore.dispatch(SettingsPreLoaded) }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this Action accurately describes an event that has occurred in the system - it seems more like we are wanting to start the process of pre-loading the settings.

Overall, this approach seems like it's reinforcing the code smell of having two stores here. I think the ideal situation we want is to allow the SummarizationStore to be able to react to ViewAppeared and have that result in an updated SettingsState that is delivered to the settings screen.

This could be a good discussion for team time tomorrow I think. I don't feel strongly that we have to address it as part of this patch, but I think this would be a good motivation for doing so.

As an aside, could you update the bug to better describe the problem we are trying to solve here rather than the steps of the solution? The problem is relatively clear from the code, but it would be good to have a digestible reference for future readers.

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