AceStack AI

Coding (Platform)

Shared query lifecycle

express + react · Hard · cache lifecycle

A browser and API disagree at the shared query lifecycle boundary. Several panels subscribe to the same query. The current cache aborts the shared request when any panel unmounts and commits a late response after the final subscriber has gone.

Task

Repair the shared browser-to-service contract. Reduce subscribe, unsubscribe, resolve and reject events into cache state with reference-counted ownership.

What this task practices

Shared query lifecycle is a coding (platform) interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as hard difficulty. It focuses on State Modeling, Regression Testing, Technical Reasoning. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.

Sign in to startThe workspace and evaluation open after sign in.