DEV Community

Discussion on: The Correct Way to Use Stores in SvelteKit

Collapse
 
terris-linenbach profile image
Terris Linenbach • Edited

use is used by Svelte actions, so the prefix use doesn't look like a React hook in Svelte code, which would only look familiar to React developers. Use plain get instead if you need a prefix. Otherwise, there are good points here. I'm stealing useSharedStore (with a different name..)