Currently, the framework uses the filename and the line number to generate the ID/key for a given component. This works, but does not guarantee stability across rerenders if we introduce hot module replacement. Consider a scenario where I just added a new hook which shifted the component's code by 2 lines, the new ID of the component is completely different from the old one because of its dependency with the line number.
Currently, the framework uses the filename and the line number to generate the ID/key for a given component. This works, but does not guarantee stability across rerenders if we introduce hot module replacement. Consider a scenario where I just added a new hook which shifted the component's code by 2 lines, the new ID of the component is completely different from the old one because of its dependency with the line number.