Skip to content

Reference 178

Reference: id 178

Generated from apps/docs-astro/src/generated/docs.json

navigateTo
Kind 4096 id: 178

Creates and moves the index over to a new snapshot with the given passage id (or the previous one) and returns a reference to it. This is essentially the way of linking between passages in the story. Yes, you can navigate to the same passage multiple times, and it will create a new snapshot each time. It's intended behavior.

Type: Partial

Source: apps/library/src/engine/if-engine.ts :902 (view)

View by name: navigateTo

See in /reference/all

Tags
  • @throwsif the passage id hasn't been added to the engine