8000 GitHub - mnrx/svelte-store: An implementation of `svelte/store` with more accurate tracking of derived store validity.
[go: up one dir, main page]

Skip to content

mnrx/svelte-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@mnrx/svelte-store

This is a re-implementation of svelte/store which offers more accurate tracking of derived store validity, ensuring that re-evaluations do not happen on invalid upstream state. It also includes expanded TypeScript support and a small addition to the public API of get().

For more information, see the pull request to Svelte.

Testing

To test this implementation against Svelte 5's test suite, run the following commands, starting in this file's directory:

git clone --depth=1 https://github.com/sveltejs/svelte.git
cd svelte
pnpm install
npx playwright install
cp ../src/main.ts packages/svelte/src/store/
echo "export { writable, readable, derived, readonly, get, get_store_value } from './main.ts';" \
  > packages/svelte/src/store/index.js
pnpm run test

To test the TypeScript type definitions, see test/test.ts.

Licence

Copyright © 2023 mnrx. Licensed under the Open Software License version 3.0.

For an MIT-licensed version of this store implementation, see the JavaScript version in my Svelte fork.

About

An implementation of `svelte/store` with more accurate tracking of derived store validity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0