● Travel Never Stops. Neither Do We. 365 Days a Year.

Hiring a React Developer: Test Conflicting Drafts Across Tabs for Romania-Based Buyers

A Romania-buyer React assessment for conflicting enquiry drafts across tabs, stale saves and explicit recovery choices.

Software reviewers compare two paper draft revisions from separate editing sessions.

When a travel enquiry is open in two browser tabs, an ordinary Save button becomes a test of product judgment. One tab may display an older server revision while its user continues writing. The useful question for a React candidate is not whether they can show a toast, but whether they can prevent an outdated save from silently replacing newer work.

Buyers planning to hire a React developer in Romania can use this bounded exercise to inspect that judgment directly. It focuses on draft ownership, competing edits, recovery and decisions a person can understand. Romania identifies the intended buyer audience, not a claim about developer location, employment arrangements or regional availability.

Why Two Tabs Reveal More Than a Polished Enquiry Form

A single-tab demonstration often follows a comfortable sequence: load data, edit fields, save, show success. That sequence does not expose what happens when the same account opens the same enquiry twice. Both tabs can initially contain correct data, yet one becomes stale when the other saves. Without a server-enforced version check, the second save can overwrite the first without warning.

The assessment should therefore concentrate on what the candidate treats as evidence. A field displayed on screen is evidence of what that tab currently renders. A local change is evidence of user intent that has not necessarily reached the server. A server acknowledgement tied to a specific draft revision is evidence that an attempted change was accepted. These states must not be collapsed into one vague label such as “saved.”

Good front-end work here is also communication design. Users need to know which changes are theirs, which are newer on the server, and what each recovery choice will discard or preserve. The challenge has a narrow scope: one existing enquiry draft, two tabs, a deliberate stale save, and a small number of lifecycle interruptions.

Give the Candidate a Precise, Fair Exercise

Use One Hypothetical Travel Enquiry

Consider an explicitly hypothetical enquiry draft called ENQ-482 for a four-person family holiday. The fields are destination, departure month, number of travellers, contact preference and an internal planning note. None of these details represent a TravelTech365 customer or an existing TravelTech365 implementation. They are test fixtures selected because different edits are easy to distinguish.

At the start, the server holds revision 12. Two tabs, A and B, are opened by the same authorized user and load that revision. In A, the user changes the departure month from June to July and saves. The server accepts revision 13. In B, the user has independently changed the planning note to “Need wheelchair-accessible transfer options,” while the page still shows revision 12. Saving B must not replace the July change or quietly report success.

Give the candidate a working mock server with an atomic revision-checking write operation, or ask them to specify the contract they need before building. If using a mock, make its behaviour deterministic and visible to the reviewer.

State What Is In and Out of Scope

Allow React, ordinary browser APIs and a modest testing setup. Require an identifiable draft, a server-returned revision, conditional saving, a non-destructive conflict display, and a recovery path after reload. Limit the exercise to the enquiry text and metadata needed for the test. Do not add payment authorization, supplier booking requests or other transactions whose confirmation rules would obscure the draft-conflict assessment.

State whether the app already has authentication, whether multiple staff can edit the same draft, and whether a user may open it on another device. If these facts are not provided, the candidate should document assumptions instead of manufacturing an access model. A sensible baseline is two tabs under the same login, with a server that validates permissions on every read and write.

Make Draft Identity, Authority and Revision Ownership Explicit

The draft identifier answers “which enquiry?” The principal or account context answers “who is permitted to access it?” The revision answers “which accepted server state did this tab read?” A browser tab can hold a copy of all three pieces of context, but cannot grant itself permission or assign the authoritative next revision.

In the hypothetical contract, the server returns the draft identifier, editable values and an opaque revision token. When the tab saves, it submits the intended changes against the revision it originally loaded. The server checks authorization and compares that expected revision with the current one in the same protected write operation. If they match, it commits and returns a new revision. If they differ, it rejects the stale write without modifying the authoritative draft.

That atomicity matters. An implementation that reads revision 12, compares it in application code, and then writes without an atomic condition still allows another save to intervene. The candidate need not use a particular database or transport protocol, but should explain where the conflict check is enforced and how two simultaneous writes cannot both claim an uncontested victory.

Illustrative states for one draft; revision numbers are invented test data.
Location Values and Version What It Establishes
Server before edits June, old note; revision 12 Accepted starting state
Tab A after typing July; based on revision 12 Local intent, not yet a server commit
Server after A saves July; revision 13 Authoritatively accepted update
Tab B after typing June, accessibility note; based on revision 12 Unsaved local edit with a stale base
Tab B after rejected save Local note retained; server remains revision 13 Conflict requiring a user decision

A version token is not an authorization token. Even a perfectly current revision does not entitle a logged-out or newly restricted user to write. Conversely, an authorized user does not automatically have a safe write simply because the interface still shows an enabled Save button. Explain both checks separately in code review.

Run the Stale-Save Demonstration Without Hiding the Loss Risk

Walk Through a Reproducible Conflict

  1. Open the same enquiry address in tabs A and B. Confirm that both render revision 12, rather than merely assuming their loads finished together.
  2. In A, edit the departure month to July. Save and inspect the accepted response and returned revision 13.
  3. In B, type the accessibility note. Keep the form mounted and avoid refreshing it before attempting Save.
  4. Submit B's changes with expected revision 12. The server rejects the attempt because revision 13 is current; the request must not overwrite A's month.
  5. Show the user that B's note is still available locally, that the save did not commit, and that a newer server version exists.
  6. Offer a deliberate comparison with the latest version or a clearly explained reload. Record what decision was made and whether a subsequent conditional save succeeded.

Ask the candidate to inspect both the interface and the resulting server record. A red conflict banner is not proof that the write was blocked. The reviewer should independently read the server state and confirm that July remains. Likewise, a green toast is not proof of persistence unless it follows a suitable acknowledgement and can be verified by a fresh authoritative read.

Have the reviewer reverse the order: allow B to save its note first, then let A attempt its month change against an outdated revision. The interaction should not depend on a hard-coded “tab B loses” rule. It should depend on whichever client submits a stale expected revision.

Keep Uncommitted Text Outside Destructive Refreshes

The candidate should keep a distinct base snapshot, current local working copy and newly fetched server snapshot. Replacing the form state with fresh server data as soon as a conflict arrives destroys the evidence needed for recovery. The local text can remain in React state while the comparison panel opens; optional browser storage can provide an additional recovery layer for a reload or crash.

Dirty-field indicators should derive from a comparison against the loaded base, not just a global “Save clicked” flag. A user can type, revert a field to its original value, or edit while a request is pending. The implementation needs to show what is actually pending, not what an earlier event once suggested.

Reviewers align two differently marked draft proofs beside a reconciliation sheet.

Design a Compare-or-Reload Decision People Can Understand

When the stale save fails, a useful message says that this tab is editing an older version and that its changes have not been saved. Avoid blaming another user unless the server actually supplies verified actor information and the product is permitted to disclose it.

Comparison Before Commitment

For ENQ-482, show three columns or an accessible sequential equivalent: “When this tab opened,” “Your unsaved edits,” and “Latest saved draft.” The earlier snapshot contains June and the old note. The unsaved copy contains June and the accessibility note. The latest server copy contains July and the old note. Field-level highlights make the difference comprehensible without requiring the user to interpret raw JSON.

One possible action is “Review and combine.” The interface can propose July plus the accessibility note because different fields changed, but the user must inspect the proposed result. Some travel fields are interdependent: a note about an airport pickup might no longer make sense after a destination change. An automatic merge that blindly treats non-overlapping fields as harmless can still create a semantically inconsistent enquiry.

Once the user approves a combined draft, submit it against the latest revision, 13, not the abandoned revision 12. If another save creates revision 14 during review, the commit must fail again and ask for a refreshed decision. A successful merge is a newly authorized, version-checked write, not an override of conflict protection.

Reload With an Explicit Loss Warning

The other action is “Reload latest saved draft.” Before it replaces the working copy, state that the accessibility note has not reached the server and show exactly what will happen to it. A practical interface can let the user copy or export their unsaved text, or keep a recoverable local snapshot while the reload proceeds, subject to the application's data-handling policy.

Avoid naming a button “Discard changes” while silently storing sensitive content indefinitely. Explain whether reload clears the local recovery copy, whether a temporary copy remains, and how long that copy survives. If the user lacks permission to retain data locally, the product should favor an in-memory comparison and a clear warning over an unauthorized persistence shortcut.

Test Tab Closure, Reload and Reconnection as Separate Events

Close a Dirty Tab Before Saving

Ask the candidate to type a new contact preference in B, then close that tab without saving. Reopening the enquiry must not present that unsaved preference as server-approved data. If permitted local recovery is implemented, it can offer “Restore unsaved text” with the associated draft identity and base revision. The restored copy should still be checked against the current server version before any save.

Browser close warnings are not a durable storage strategy. A tab may crash, a mobile browser may be suspended, or a user may suppress a prompt. Tests should distinguish a graceful close from process termination and should not promise recovery in environments where no durable local copy was recorded.

Reload While Another Tab Has Advanced

Reload B after A has accepted revision 13. A clean B should fetch and display revision 13. A dirty B with permitted recovery data should surface the recovered edits alongside revision 13, not silently reapply them as if nothing changed. The exercise is complete only when the reviewer can tell whether text came from the server or from local recovery.

Recovery data needs scope: draft identifier, user or account context as applicable, base revision and saved-at time are useful design considerations. The team must decide whether storing the text itself is appropriate. Do not recover a former user's draft into the next person's session on a shared device, and do not rely on guessing identity from a browser key. Access must be established again through the server.

Lose Connectivity During a Save

Next, delay a save response and disconnect the network. The UI can report “Save outcome unknown” because the server may already have committed the change. It must not immediately convert the absence of a response into “Save failed” or create an uncontrolled retry that may be processed twice. A fresh read can help reconcile the visible draft with an authoritative server revision, but a read alone cannot prove a delayed in-flight request will never commit.

For a stronger demonstration, the proposed server contract can give each save attempt a unique operation identifier and provide an authoritative outcome for that identifier, or enforce equivalent duplicate-safe handling. The candidate should explain how they would wait for or establish the original attempt's final outcome before issuing a new conflicting write. If the server lacks that capability, display the uncertainty and defer action rather than invent certainty.

After reconnection, test both possible branches: the original save committed, and the original save was definitively rejected. A resolved success updates the displayed base revision without erasing newer local typing. A resolved rejection leaves the text available for review. Neither path should equate network availability with proof that a particular write succeeded.

Keep Cross-Tab Signals Useful but Subordinate to the Server

Browser mechanisms such as storage notifications or a channel between tabs can announce that another tab probably changed a draft. These signals can improve responsiveness: B might show “A newer saved version may exist” immediately after A saves. They are not an authorization mechanism, a reliable distributed lock, or proof of a completed server commit. Tabs can close, messages can be missed, and browser state can be modified outside the application's intended flow.

Ask the candidate to demonstrate the page with cross-tab messaging disabled. The server revision check must still prevent an overwrite. If the conflict disappears only when local messages are delivered, the design is depending on an optimization for correctness. Similarly, a local “editing lock” can guide users but must never replace enforcement at the authoritative data store.

Permission changes provide a useful boundary test. Suppose the hypothetical user loses edit access after both tabs have loaded. B must not successfully save simply because it carries a familiar draft identifier and revision token. The server should return a permission outcome and withhold information the user is no longer entitled to fetch. The interface should distinguish access denial from ordinary version conflict without exposing the latest draft inappropriately.

Data minimization matters in diagnostics too. A developer may want to log every request body to reconstruct the conflict. Prefer tracing draft identifiers, opaque revision references, operation identifiers, outcome categories and timings where approved. Sensitive enquiry notes should not become unrestricted console logs, analytics payloads or long-lived browser records just to make a demonstration easier.

Look for Failure Cases Beyond the Happy-Path Conflict

A reviewer can learn more from a small set of targeted failures than from a large feature list. Each test should identify the trigger, expected screen state and accepted server result. Useful cases include:

  • Two near-simultaneous saves: both start from revision 12. At most one can commit on that expected revision; the other must receive a conflict or an independently resolved outcome.
  • Save button pressed twice: repeated clicks must not produce two unrelated writes while the first outcome is unresolved. Button disabling alone is insufficient if requests can be replayed.
  • Conflict response arrives late: text entered after Save was pressed must remain intact. Do not replace the entire form with the request's older snapshot.
  • Network response arrives out of order: a slower read must not overwrite a newer confirmed base revision or an active working copy.
  • Same field changed twice: if both tabs modify departure month differently, surface the disagreement instead of treating it as an automatically safe merge.
  • Draft removed or permission revoked: show an explicit unavailable or access outcome; do not offer a misleading force-save action.
  • Local recovery belongs to another session: decline to restore it until authorized identity and storage policy requirements are met.
  • Browser storage is unavailable: keep the live conflict flow safe in memory and accurately describe which crash-recovery convenience is lost.

Review the Code and the Evidence, Not Just the Screen Recording

Inspect the State Model

A focused review should find separate representations for the accepted base, the editable working copy, the latest fetched server state and any pending operation. The candidate may implement these with reducers, query caches or another understandable pattern. What matters is that transitions remain explicit: loading is not saving, saving is not confirmation, conflict is not permission denial, and recovery is not a server commit.

Ask what happens when a user types during a pending save. One defensible model keeps a snapshot of the submitted changes and separately tracks subsequent typing. When acknowledgement arrives, it updates the accepted base while preserving changes made later. Another model temporarily blocks edits with a clear explanation. Either choice should be consistent, testable and honest about trade-offs.

Request Reproducible Artefacts

Useful evidence includes a concise state diagram, the mock server's conditional-write rule, and a small automated test suite. One integration test can mount two independent editor instances against the same simulated server. A second can reject stale writes. A third can delay a response and assert that unknown outcomes are not reported as failure. A browser-level test can cover close, reopen and permitted recovery.

The candidate should also provide a short screen demonstration showing the exact field changes and final server value, with fixture data only. A network trace or structured test log can connect the displayed message to the returned revision or conflict outcome. Ask for enough detail to reproduce the behaviour, but do not require production secrets, unrestricted access or real traveller information.

For a React-specific review, examine effect cleanup, asynchronous response handling, stable draft keys, form accessibility and rendering after state transitions. A test that passes because requests finish in a convenient order is weaker than one that deliberately varies timing. Keyboard users should be able to reach the conflict explanation and actions, and focus should not vanish when a comparison panel opens.

Translate the Exercise Into a Buyer's Evaluation Conversation

Buyers in Romania can run the same technical scenario without assuming anything about local hiring conditions. Before the interview, confirm the language in which requirements, code reviews and handover notes should be prepared. Establish the overlap hours needed for joint debugging rather than assuming a candidate's working schedule from geography. Procurement requirements, data-access rules, device policies and permission to use browser storage should be recorded as buyer-approved inputs.

If these constraints are not yet known, ask them as questions: Which language should the conflict message use? Who can grant access to a safe test environment? May enquiry notes be cached on managed devices? What response time is expected for reviews? Are screenshots of test records permitted? What evidence must accompany delivery? None of the answers should be inferred from the country name.

A modest scoring discussion can separate four dimensions: correctness of server-backed conflict control; preservation and clarity of user edits; resilience under interruption; and explanation of limitations. Score each against observed tests, not résumé claims.

TravelTech365's React development technology overview offers related context for readers considering React work more broadly. For this assessment, however, the important purchasing decision is narrower: can the proposed developer demonstrate safe treatment of competing edits in the buyer's actual draft workflow?

Acceptance Checklist for a Multi-Tab Draft Assessment

Use the following checklist during the live exercise or a recorded handover. An item should be marked complete only when there is an observable demonstration or inspectable technical artefact behind it.

  • Both tabs are confirmed to load the same server-backed enquiry and the same initial revision.
  • Draft identity, current permission context and revision tracking are separately explained.
  • A's successful update produces a new authoritative revision that a fresh read can verify.
  • B's stale write is rejected atomically; it does not silently erase A's accepted changes.
  • B's unsaved text remains visible after the conflict and after relevant delayed responses.
  • The interface distinguishes base values, local changes and latest saved values without implying unsupported authorship.
  • Compare and reload are explicit decisions, with loss warnings and an inspectable result.
  • A reviewed combined edit is submitted against the newest known revision and can itself conflict again.
  • A dirty-tab closure and subsequent reopening behave according to a stated, permitted recovery policy.
  • Reconnection handles unknown save outcomes without guessing, blind retrying or overwriting newer input.
  • Missing cross-tab browser messages do not weaken server-side correctness or authorization checks.
  • Permission loss, same-field disagreement, duplicate actions and reordered responses have been tested.
  • Code, mock behaviour and test evidence make the result reproducible without real customer data.
  • Buyer-approved language, working overlap, procurement process and data-access conditions are documented or identified as open questions.

The hiring signal is not whether the candidate can make two tabs look synchronized at every moment. It is whether they know which state is authoritative, can preserve a person's unfinished work, and can make a dangerous overwrite impossible without disguising uncertainty.