{"version":"2.1.227","anchor":"task-store-now-comes-from-a-react-provider","canonical_anchor":"task-store-now-comes-from-a-react-provider","heading":"Task store now comes from a React provider","tier":"internal","area":"Background Tasks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.227\/e\/task-store-now-comes-from-a-react-provider","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.227","markdown":"### Task store now comes from a React provider\n\nThe tasks store is provided through app state instead of a global singleton.\n\n**What**\n\nThe tasks store is read through a context mounted by the app state provider instead of a module-level singleton, and using it outside that provider raises a named error saying so.\n\n**Evidence**\n\n`useTasksV2 cannot be called outside of a TasksV2StoreContext provider (mounted by <AppStateProvider \/>)`\n\n- Area: Background Tasks\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}