What seems to be the problem:
I have a Tag model defined as below. The $set variable is used in between requests such that the blade view may know which tags where previously enabled to show them as checked again. The issue which I am facing is with Livewire’s load more. Let’s assume that the set variable is true when first passing the objects to Livewire. Upon pressing load more, the $tags variable in the Livewire Component still exists but the set parameter becomes null. This does not happen with other variables which I set in the Livewire component - other variables persist the value between load more functions.
Steps to Reproduce:
Are you using the latest version of Livewire:
Yes
Do you have any screenshots or code examples:
class Tag extends Model
{
use HasFactory;
public $set; // used to keep track of whether the tag was enabled in the form or not
}