Describe the bug
When you initially load the panel and your custom section within it - everything works. However, when you make a change in your section's source code and Parcel re-compiles it - HMR kicks in, replaces the section, and you get this error:
Expected behavior
Perhaps sections could receive the response as a prop, instead of having to load().then()?
If response === null, the API call is in progress. If it's not null - it has returned.
Describe the bug
When you initially load the panel and your custom section within it - everything works. However, when you make a change in your section's source code and Parcel re-compiles it - HMR kicks in, replaces the section, and you get this error:
To Reproduce
Steps to reproduce the behavior:
npm run dev
Here's my section component:
Expected behavior
Perhaps sections could receive the
response
as a prop, instead of having toload().then()
? Ifresponse === null
, the API call is in progress. If it's notnull
- it has returned.Kirby Version
3.3.5