I started to notice a defect for UI Picklists that pull their source from snippets. I believe this may have been introduced in the Dubai Update? I was able to reliably reproduce this on any UI only picklist with source with a snippet. If the snippet just contains a console.log(“test”) message, it will fire that snippet twice when the skuid page is rendered. This is particularly a problem if we are using a fetch or API request to source the Picklist and return it as an array. The fetch request fires twice.
I was able to workaround this issue by making the snippet inline (fire on page render) that creates rows in a model that then the UI Only Picklist values.
- API Version: v2
- Release: Dubai Update 2
- Release version: 220.127.116.11
- Platform: SFX
Brief Summary of the Defect/Issue:
Adding a UI Only Picklist that is sourced by a snippet; fires that snippet twice when the page loads.
Load skuid page and review dev tools & console.
The snippet should only fire once and display “test” only once.
The snippet fires twice which causes issues if we are making callouts to other resources to populate the picklist.
Page XML below: