kontent-ai / delivery-sdk-js

Kontent Delivery SDK for Javascript
https://kontent.ai
MIT License
50 stars 34 forks source link

Client Configuration Parameter to Bypass Archived Items #349

Closed VladSelegean closed 1 year ago

VladSelegean commented 2 years ago

Motivation

Using the usePreviewMode configuration also fetches archived items, which doesn't really make sense for the preview mode.

Proposed solution

Adding a new configuration property which will skip archived items.

Enngage commented 2 years ago

Hi @VladSelegean,

I understand your point, though this is a feature of the Preview API itself, see a snapshot from our docs (https://kontent.ai/learn/reference/delivery-api/):

preview

A possible workaround might be using the system.workflow_step[neq]=archived query parameter, though I'll have to test this first first too see if it works as intended.