Skip to content

docs: fix typo #3029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/vanilla/internals.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Internal functions (subject to ch>ange without notice)
// Internal functions (subject to change without notice)
// In case you rely on them, be sure to pin the version

import type { Atom, WritableAtom } from './atom.ts'
Expand Down Expand Up @@ -374,7 +374,7 @@ type BuildingBlocks = readonly [
mountCallbacks: Callbacks,
unmountCallbacks: Callbacks,
storeHooks: StoreHooks,
// atom intercepters
// atom interceptors
atomRead: AtomRead,
atomWrite: AtomWrite,
atomOnInit: AtomOnInit,
Expand Down Expand Up @@ -405,7 +405,7 @@ const buildStore = (
mountCallbacks: Callbacks = new Set(),
unmountCallbacks: Callbacks = new Set(),
storeHooks: StoreHooks = {},
// atom intercepters
// atom interceptors
atomRead: AtomRead = (atom, ...params) => atom.read(...params),
atomWrite: AtomWrite = (atom, ...params) => atom.write(...params),
atomOnInit: AtomOnInit = (atom, store) => atom.unstable_onInit?.(store),
Expand Down Expand Up @@ -480,7 +480,7 @@ const buildStore = (
const recomputeInvalidatedAtoms =
buildingBlockFunctions[2] ||
(() => {
// Step 1: traverse the dependency graph to build the topsorted atom list
// Step 1: traverse the dependency graph to build the topologically sorted atom list
// We don't bother to check for cycles, which simplifies the algorithm.
// This is a topological sort via depth-first search, slightly modified from
// what's described here for simplicity and performance reasons:
Expand Down Expand Up @@ -853,7 +853,7 @@ const buildStore = (
mountCallbacks,
unmountCallbacks,
storeHooks,
// atom intercepters
// atom interceptors
atomRead,
atomWrite,
atomOnInit,
Expand Down