Initial checklist
Link to runnable example
No response
Steps to reproduce
- Include
@uppy/svelte in your project (I'm using version 4.6.2).
- Build your assets.
This is the warning:
Module Warning (from ./node_modules/svelte-loader/index.js):
state_referenced_locally: This reference only captures the initial value of `uppy`. Did you mean to reference it inside a derived instead?
https://svelte.dev/e/state_referenced_locally
node_modules/@uppy/svelte/dist/components/headless/UppyContextProvider.svelte:9:4
7: // Create a single reactive context object
8: const contextValue = $state({
9: uppy,
^
10: status: 'init',
11: progress: 0,
Expected behavior
This warning should not be generated.
Actual behavior
The https://svelte.dev/e/state_referenced_locally warning is generated on assets build.