Skip to content

Why use providers instead of stores? #460

Discussion options

You must be logged in to vote

Hi Samuel,

the Provider definitely started out from trying to follow fluent-react's API. The provider at it's core is just a renderless component that initializes some stores used internally by the Localized and Overlay components. It also serves as a nice place to dispatch errors (currently only missing translations) which can be subscribed to via <FluentProvider on:error={doSomething} />.

There's no deeper reasoning than that :)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@sfriedel
Comment options

@samuelstroschein
Comment options

@sfriedel
Comment options

@samuelstroschein
Comment options

@sfriedel
Comment options

Answer selected by sfriedel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants