So many of you know that until 9.2 with JSS 12, there were some conflicts between SXA and JSS on the same environment, to be more specific they were not compatible.
So if you are using Sitecore 9.0.2 and JSS 11 and SXA 1.8 on the same environment, and you have created a Sitecore JSS site and then you had installed SXA on top of it. And now your content authors have to do extra work in order to add components to the page in the Experience Editor, they get extra steps now.
So your renderings are set up correctly (https://helix.sitecore.net/principles/layout/datasource-settings.html)
When you try to add component to a page, you select a component
and then you get prompted to create a component and give it name
But when you click to create it again pop-ups with a window to select a component and give it a name
Usually when you install something it should not break, but in my case a new pipeline was added.
Here is the compiled list of all the pipelines, that I see in the showConfig.aspx
ScriptedRenderingDataSourceRoots - [Cognifide.PowerShell] GetDatasourceLocation - [Sitecore.XA.Foundation.LocalDatasources] AddAdditionalTemplates - [Sitecore.XA.Foundation.LocalDatasources] AddDatasourceLocations - [Sitecore.XA.Foundation.LocalDatasources] RestrictFallbackDatasourceLocations - [Sitecore.XA.Foundation.Multisite] SetFallbackDatasourceLocations - [Sitecore.Kernel] GetDatasourceTemplate - [Sitecore.Kernel] GetTemplatesForSelection - [Sitecore.Kernel] CheckDialogState - [Sitecore.Kernel] AddPageDataFolder - [Sitecore.XA.Foundation.LocalDatasources] AddCompositePageDataFolder - [Sitecore.XA.Feature.Composites] AddCompositePageDataFolder - [Sitecore.XA.Foundation.LocalDatasources] GetDatasourceTemplate - [Sitecore.XA.Foundation.LocalDatasources] ExtendGetDatasourceDialogUrl - [Sitecore.XA.Foundation.LocalDatasources]
The one that creates me the problem is this one “GetDatasourceTemplate“
For the quick fix all you need to do is remove or disable the following file (SelectRenderingDatasource.xml) – location below
Before you delete anything important note this approach is not recommended as far as you want to use the SXA module itself. It will break SXA functionality.
After you install the SXA module, it overrides the logic for SelectRenderingDatasource in Website\sitecore\shell\override\Applications\Dialogs\SelectRenderingDatasource\SelectRenderingDatasource.xml (calling all other related logic).
This will let you add the component to the page and then it will prompt you to give it a name