You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Halt status from the data source: DataSource gains an optional subscribeHalt(symbol, onChange), and having the method is what turns the feature on. When present, the halt badge (#78) follows it with no host wiring. Call onChange(true) or pass a HaltBadge while the symbol is halted, and onChange(false) when trading resumes. The subscription renews per symbol, and one ticker's halt never carries over to the next. An explicit halted prop still takes precedence. SonrChartShell also gains a halted passthrough, since previously its charts could not show the badge at all.
Changed
Volume is no longer on by default.indicators now defaults to [] on both SonrChart and SonrChartShell (was ["VOL"]), so the chart opens with no studies. To keep the old behavior, pass indicators={["VOL"]}.
Candle type, sessions, and price-scale labels persist across remounts.persistenceKey now also carries these display settings, so a host that remounts the chart on a symbol change (key={symbol}, as SonrChartShell tiles commonly do) keeps the user's choices on every new ticker and interval. They already persisted while the chart stayed mounted. Like indicators, the candleStyle / sessions / priceLabels props now seed only the first mount for a key, though a later change to one still applies. savePersistedDisplay, loadPersistedDisplay, and clearPersistedDisplay are exported.
Fixed
An inline object prop (sessions={{ … }}, priceLabels={{ … }}, watermark={{ … }}) no longer resets the user's setting on every host re-render, such as a symbol switch. Props are now compared by value rather than identity, and only a real change is adopted.
The indicators menu now reflects studies the chart seeds from the indicators prop. That seed lands after the async resolveSymbol, which runs after the menu's one-shot mount read, so the menu showed VOL as unchecked while it was on the chart. The chart now fires subscribeIndicators once the seed lands, and IndicatorMenu re-reads on every indicator change. The data window picks up the same notification.