Documentation / @zerotal/inertia / merge
Function: merge()
merge(
value):MergeProp
Defined in: inertia/src/props/PropTypes.ts:326
Mark this prop so the client appends (merges) it into the existing value on partial
reloads instead of replacing it — the basis for "load more" lists. Chain
.append() / .prepend() / .matchOn() on the returned wrapper for finer control.
Parameters
value
unknown
The value, or a factory producing it.
Returns
A MergeProp wrapper.
Example
return inertia('Feed', { posts: merge(() => Post.paginate(15, page)) });