Which documentation could use some work?
Is this a discrepancy or an improvement?
🖊 Describe what you'd like to see change in the documentation
The React example on the feature-playback reference page calls playback.toggle:
return <button onClick={playback.toggle}>{playback.paused ? 'Play' : 'Pause'}</button>;
But the playback feature has no toggle() method. The actual API is togglePaused() (defined in packages/core/src/dom/store/features/playback.ts). The auto-generated reference table on the same page already lists togglePaused() correctly — the example just contradicts it. Anyone copy-pasting the snippet gets playback.toggle is undefined at runtime.
💡 Describe how you think this change will help the documentation
Update the example to use playback.togglePaused so it actually works when copied, and matches the API reference table directly above it.
Which documentation could use some work?
Is this a discrepancy or an improvement?
🖊 Describe what you'd like to see change in the documentation
The React example on the feature-playback reference page calls
playback.toggle:But the playback feature has no
toggle()method. The actual API istogglePaused()(defined inpackages/core/src/dom/store/features/playback.ts). The auto-generated reference table on the same page already liststogglePaused()correctly — the example just contradicts it. Anyone copy-pasting the snippet getsplayback.toggle is undefinedat runtime.💡 Describe how you think this change will help the documentation
Update the example to use
playback.togglePausedso it actually works when copied, and matches the API reference table directly above it.