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
Systems with a dynamic amount of entries will usually not provide an API to receive all entries as once, since it may contain such a large amount of entries, it'll crash trying to provide them all.
Moreover, you wouldn't usually want to get all entries at once.
I'd suggest to change the following API to include parameters from where to start (offset) and an amount of entries to get (amount) while limiting the amount to a max value.
Systems with a dynamic amount of entries will usually not provide an API to receive all entries as once, since it may contain such a large amount of entries, it'll crash trying to provide them all.
Moreover, you wouldn't usually want to get all entries at once.
I'd suggest to change the following API to include parameters from where to start (
offset
) and an amount of entries to get (amount
) while limiting the amount to a max value.https://github.com/xpodev/jsblog/blob/main/packages/core/src/blog.ts#L50-L52
The text was updated successfully, but these errors were encountered: