Skip to content

Top-level LAST_TOLGEE_INSTANCE disables previous instance #3461

@jvruss

Description

@jvruss

I have multiple widgets injected into the main project. Each widget is wrapped in a TolgeeProvider with its own TolgeeInstance. The main project is also wrapped and uses useSuspense to dynamically load translations by routes.

let LAST_TOLGEE_INSTANCE: TolgeeInstance | undefined = undefined;

Since LAST_TOLGEE_INSTANCE is defined at the top level, each new provider render overrides the previous one, stopping translations from loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions