List of event types is not refreshed after adding one item
The list of event types available for filtering the event list is not refreshed properly after adding an element using the dedicated form.
That is because the filter is a naked sib-form associated with the events sib-display. Associated HTML for reference:
<sib-display class="events" data-src="http://localhost:8000/events/" extra-context="event-context" fields="img, name, time(startDate,startTime), type, shortDescription, location, link" search-fields="type" search-label-type="Event type" search-range-type="http://localhost:8000/typeevents/" widget-img="sib-display-img" widget-startdate="sib-display-startdate-events" widget-starttime="sib-display-starttime-events" widget-type="sib-display-type" widget-link="sib-display-link-event" widget-location="sib-display-location-events" paginate-by="9" next="eventdetail">
<sib-form naked="" fields="type" label-type="Event type" range-type="http://localhost:8000/typeevents/"><sib-form-dropdown name="type" label="Event type"><label>
<div>Event type</div>
<select name="type" data-holder="">
<option value="" selected="">―</option>
<option value="{"@id": "http://localhost:8000/typeevents/1/"}">Totoro</option>
<option value="{"@id": "http://localhost:8000/typeevents/2/"}">Tatara</option>
<option value="{"@id": "http://localhost:8000/typeevents/3/"}">Vitolo</option>
<option value="{"@id": "http://localhost:8000/typeevents/4/"}">Virata</option>
<option value="{"@id": "http://localhost:8000/typeevents/5/"}">Azerty</option>
<option value="{"@id": "http://localhost:8000/typeevents/6/"}">qsdfghj</option>
<option value="{"@id": "http://localhost:8000/typeevents/7/"}">azdssqd</option>
</select>
</label>
</sib-form-dropdown>
</sib-form>
<div></div>
<nav data-id="nav" hidden="">
<button data-id="prev" disabled="">←</button>
<button data-id="next" disabled="">→</button>
<span>
<span data-id="current">1</span> / <span data-id="count">1</span>
</span></nav></sib-display>
Ping @matthieu @clement should we import the store into this component and add an access to the resource from the store cache and clear it by targetting the list itself ? Is there a shortcut ?