PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.17
Yatra – Travel Booking & Tour Operator Software v3.0.17
3.0.17 3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 All 85 releases
← All changes | resources/js/account-page.tsx +9 -1 3.0.6 → 3.0.17 View file →
@@ -7,8 +7,9 @@
7 7 import ReactDOM from "react-dom/client";
8 8 import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
9 9 import AccountPage from "./pages/AccountPage";
10 10 import { ToastProvider } from "./components/ui/toast";
11 +import { ErrorBoundary } from "./components/ErrorBoundary";
11 12 import { __ } from "./lib/i18n";
12 13 import "./css/index.css";
13 14
14 15 // Create React Query client
@@ -25,8 +26,13 @@
25 26 // Get mount point
26 27 const rootElement = document.getElementById("yatra-account-page-root");
27 28
28 29 if (rootElement) {
30 + // Opt out of browser auto-translation so it never rewrites React-managed
31 + // text nodes (which otherwise causes "removeChild" reconciliation crashes).
32 + rootElement.setAttribute("translate", "no");
33 + rootElement.classList.add("notranslate");
34 +
29 35 try {
30 36 const root = ReactDOM.createRoot(rootElement);
31 37
32 38 root.render(
@@ -32,9 +38,11 @@
32 38 root.render(
33 39 <React.StrictMode>
34 40 <QueryClientProvider client={queryClient}>
35 41 <ToastProvider>
36 - <AccountPage />
42 + <ErrorBoundary>
43 + <AccountPage />
44 + </ErrorBoundary>
37 45 </ToastProvider>
38 46 </QueryClientProvider>
39 47 </React.StrictMode>,
40 48 );