{
  "id": "@typed/template/Render#CurrentRenderQueue",
  "canonicalId": "@typed/template#CurrentRenderQueue",
  "symbol": {
    "id": "@typed/template/Render#CurrentRenderQueue",
    "packageName": "@typed/template",
    "moduleName": "Render",
    "exportName": "CurrentRenderQueue",
    "kind": "constant",
    "signatures": [
      "export declare const CurrentRenderQueue: Context.Reference<RQ.RenderQueue>;"
    ],
    "summary": "A service that manages the queue of DOM updates.\n\nIt ensures that DOM updates are batched and executed efficiently, often coordinating\nwith browser painting cycles (e.g., via `requestAnimationFrame`).",
    "sections": {
      "Why": "Scheduling policy is separate from template semantics. Scalar parts retain\ndirect DOM targets while the queue decides when their already-local updates\nexecute.",
      "Ownership and lifetime": "The default queue is created lazily for the current Effect context. Queue\ncallbacks are disposable and render Scopes cancel pending work on cleanup."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { CurrentRenderQueue } from \"@typed/template/Render\"\nimport { MixedRenderQueue } from \"@typed/template/RenderQueue\"\nimport { Layer } from \"effect\"\n\n// Use a custom render queue\nconst customQueue = new MixedRenderQueue()\nconst queueLayer = Layer.succeed(CurrentRenderQueue, customQueue)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/Render.ts",
      "line": 128
    },
    "since": "1.0.0",
    "category": "Render scheduling"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template/Render#CurrentRenderQueue",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": "Render",
    "consumerSpecifier": "@typed/template/Render",
    "exportName": "CurrentRenderQueue",
    "qualifiedName": "CurrentRenderQueue",
    "declarationKey": "declaration:82ea2450c8ff0dcc7bdc57c8",
    "family": "variable",
    "signatures": [
      "export declare const CurrentRenderQueue: Context.Reference<RQ.RenderQueue>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 128,
          "column": 14
        },
        "end": {
          "line": 130,
          "column": 3
        }
      }
    ],
    "aliases": [
      "@typed/template#CurrentRenderQueue"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:82ea2450c8ff0dcc7bdc57c8",
    "name": "CurrentRenderQueue",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const CurrentRenderQueue: Context.Reference<RQ.RenderQueue>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/Render.ts",
            "start": {
              "line": 128,
              "column": 14
            },
            "end": {
              "line": 130,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const CurrentRenderQueue: Context.Reference<RQ.RenderQueue>;"
    ],
    "typeParameters": [],
    "summary": "A service that manages the queue of DOM updates.\n\nIt ensures that DOM updates are batched and executed efficiently, often coordinating\nwith browser painting cycles (e.g., via `requestAnimationFrame`).",
    "sections": {
      "Why": "Scheduling policy is separate from template semantics. Scalar parts retain\ndirect DOM targets while the queue decides when their already-local updates\nexecute.",
      "Ownership and lifetime": "The default queue is created lazily for the current Effect context. Queue\ncallbacks are disposable and render Scopes cancel pending work on cleanup."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { CurrentRenderQueue } from \"@typed/template/Render\"\nimport { MixedRenderQueue } from \"@typed/template/RenderQueue\"\nimport { Layer } from \"effect\"\n\n// Use a custom render queue\nconst customQueue = new MixedRenderQueue()\nconst queueLayer = Layer.succeed(CurrentRenderQueue, customQueue)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/Render.ts",
        "start": {
          "line": 128,
          "column": 14
        },
        "end": {
          "line": 130,
          "column": 3
        }
      }
    ],
    "since": "1.0.0",
    "category": "Render scheduling"
  }
}
