Back to Practice
Lightning Web ComponentsDebuggingHard
Interview Challenge
Fix an Infinite renderedCallback Loop
Debug an LWC that mutates reactive state every time renderedCallback executes.
You can explore this challenge without signing in.
Read the problem, review the starter code and try your solution. Sign in when you're ready to submit and save your progress.
Challenge
Version 1
Inspect the evidence
Artifact / implementation
Review the supplied code, configuration or trace before proposing a fix.
import { LightningElement } from 'lwc';
export default class AccountSummary extends LightningElement {
renderCount = 0;
renderedCallback() {
this.renderCount = this.renderCount + 1;
}
}Response workspace
Identify the issue, explain why it is a problem, and describe the fix. Include both your analysis and corrected solution below.
0 analysis characters
0 solution characters