JD
JD
Should I just create a new `ResourceMapping` instance or do I need to get it in this manner: `this.context.aemContext.container.get("resourceMapping")`? And do I replace ``` let clientSling: ClientSling = new ClientSling(cache,...
Okay, now I have these codes **my-client-sling.tsx** ``` import ClientSling from "aem-react-js-fork/store/ClientSling"; import { ResourceComponent } from "aem-react-js-fork/component/ResourceComponent"; import { SlingResourceOptions } from "aem-react-js-fork/store/Sling"; export default class MyClientSling extends ClientSling...
I have applied the changes indicated above but I noticed that the `state.resource` of the `DashboardPage` (component right under `RootComponent`) is `null`, and the `state.absolutePath` having an `.html` extension. I...
I narrowed down the error to the `ClientSling.subscribe` method. If I pass the `mappedPath` to the parent constructor of `MyClientSling` instead of the `path` only, the whole page doesn't load....
This is inside the default `ClientSling.subscribe` ``` let pathMod = path; // this is what I mean when I say "resolve it manually" if (pathMod.startsWith("/content/projectname/home")) { pathMod = pathMod.substring("/content/projectname/home".length); }...
I now see the problem, `mappedPath` has an `.html` extension because it was processed thru `resourceMapping.map`, while `path` isn't. Now I just remove the extension from `mappedPath`. Is there a...
I have come up with a temporary solution. Please note that I am changing codes inside the `node_modules` directory but it's pretty easy to see how it translates to the...
I am using AEM 6.1 and the Touch UI. There are no javascript errors on the console. I am using the cq:isContainer on a component called CustomListComponent. When I drag...