Logic to create classname could be wrong #1601
-
Hi all, ${prefix || 'c'}${moduleId}${jssId}${ruleCounter} In my app, I have many small apps, each has it own jss version, sharing many components. We know that Moduleid will increase 1 each time to one instance of lib is loaded. Now i have some conflicts of class name. So i am thinking the formula could be wrong as follows: At beginning then i navigate to other pages many time till one moment: so both produce c1137 as class name and will be conflicted. could it be the case? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Module id is literally the javascript module, it is created once the module is evaluated, I doubt you literally have jss library loaded several times for each case or do you? Jss id is on the other hand something you can create many times, it is incremented with each new jss instance. |
Beta Was this translation helpful? Give feedback.
-
Yep, the moduleId is definitely different. But it still could produce 2 identical class name: |
Beta Was this translation helpful? Give feedback.
Yep, the moduleId is definitely different. But it still could produce 2 identical class name:
c.1.1.137
c.11.1.37