title: How to eager load associations into an instance variable?
body: <p>In Model I have:</p>
  
  <pre><code>class CalendarItem &lt; Resource
    belongs_to :schedule
  
    has_many :people
    has_many :documents
  
    acts_as_list scope: :schedule, column: :visual_position
  
    validates :schedule, :title, presence: true
  end
  </code></pre>
  
  <p>Then in controller:</p>
  
  <pre><code>class ScheduleController &lt; ApplicationController
    def show
      @calendar_items = CalendarItem.where(schedule: @schedule).includes(:people, :documents)
    end
  
    ...
  end
  </code></pre>
  
  <p>In the view I'm rendering a react_component with react-rails (but that should make any difference):</p>
  
  <pre><code>= react_component('CalendarItemsList', calendar_items: @calendar_items)
  </code></pre>
  
  <p>However it does not pass the associated data to the view (react_component), only main model.</p>
  
  <p>I have experienced this before, with non-react front-end, and it didn't work either. What could be wrong?</p>