From 80e3aa259f2fc0ded2d7f57f34265ce033c9162e Mon Sep 17 00:00:00 2001 From: anson Date: Mon, 20 Oct 2025 20:22:34 +0100 Subject: [PATCH] feat(docs): Add FAQ section to documentation and update index formatting --- docs/docs.json | 6 ++++++ docs/faqs/index.mdx | 12 ++++++++++++ docs/index.mdx | 10 +++++----- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 docs/faqs/index.mdx diff --git a/docs/docs.json b/docs/docs.json index 5988e4552..df16c223a 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -125,6 +125,12 @@ "sdk/resources/supported-evm-chains", "sdk/resources/network-status" ] + }, + { + "group": "FAQ", + "pages": [ + "faqs/index" + ] } ] }, diff --git a/docs/faqs/index.mdx b/docs/faqs/index.mdx new file mode 100644 index 000000000..9cdc48862 --- /dev/null +++ b/docs/faqs/index.mdx @@ -0,0 +1,12 @@ +--- +title: 'FAQ' +description: 'Common questions about using the Lit JS SDK' +--- + +# Frequently Asked Questions + +## What's the default `responseStrategy` for `executeJs` in v8? + +The behavior matches v7. When you omit `responseStrategy`, the SDK calls `processLitActionResponseStrategy` with `{ strategy: 'leastCommon' }`. If you provide an unrecognized value, the helper still falls back to `leastCommon`. + +This default keeps compatibility with `Lit.Actions.runOnce`. Only the node that runs the `runOnce` block returns a value, so selecting the least-common response ensures that single result is preserved. When `runOnce` is not used, all nodes should emit the same payload, making least- vs most-common equivalent—the former stayed in place because it was the quickest path to enabling the new `runOnce` flow in v8. diff --git a/docs/index.mdx b/docs/index.mdx index 218e25952..6a4c50ee9 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -1,6 +1,6 @@ --- -title: "What is Lit Protocol" -description: "Decentralized key management and private compute" +title: 'What is Lit Protocol' +description: 'Decentralized key management and private compute' --- @@ -62,9 +62,9 @@ Developers can utilize Lit's programmable and chain-agnostic signing capabilitie Lit enables the creation of data oracles that securely fetch off-chain data for use in on-chain applications, bridging the gap between smart contracts and real-world information. > **📝 Data Oracle Kit** -> +> > The [Lit Oracle Kit](https://github.com/LIT-Protocol/lit-oracle-kit) demonstrates how the Lit Network can be used to sign data pulled from the web (or another blockchain) and write it to chain. -> +> > **Note:** This kit is currently built for V7 of the Lit SDK. A V8 version is coming soon! ### AI Agents and Infrastructure @@ -77,6 +77,6 @@ Projects in this category are focused on delivering essential infrastructure cri ## Next Steps -To learn more about how Lit Protocol works and keeps assets and data secure, continue on to the sections ahead. +To learn more about how Lit Protocol works and keeps assets and data secure, continue on to the sections ahead. If you're a developer looking to build with the Lit SDK, check out the [Build with Lit](https://litprotocol.mintlify.app/sdk/introduction) section to get started.