spring-batch-rs 0.3.4

A toolkit for building enterprise-grade batch applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
---
/** Unique symbol for storing a running index in `locals`. */
const currentGroupIndexSymbol = Symbol.for('starlight-sidebar-group-index');
const locals = Astro.locals as App.Locals & { [currentGroupIndexSymbol]: number };

/** The current sidebar group’s index retrieved from `locals` if set, starting at `0`. */
const index = locals[currentGroupIndexSymbol] || 0;
// Increment the index for the next instance.
locals[currentGroupIndexSymbol] = index + 1;
---

<sl-sidebar-restore data-index={index}></sl-sidebar-restore>