Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

1018 B
Raw Blame
/**
 * Copyright (c) 2023-present Plane Software, Inc. and contributors
 * SPDX-License-Identifier: AGPL-3.0-only
 * See the LICENSE file for details.
 */

// TODO: Check if we need this
// https://nextjs.org/docs/app/api-reference/functions/generate-metadata#link-relpreload
// export const usePreloadResources = () => {
//   useEffect(() => {
//     const preloadItem = (url: string) => {
//       ReactDOM.preload(url, { as: "fetch", crossOrigin: "use-credentials" });
//     };

//     const urls = [
//       `${process.env.VITE_API_BASE_URL}/api/instances/`,
//       `${process.env.VITE_API_BASE_URL}/api/users/me/`,
//       `${process.env.VITE_API_BASE_URL}/api/users/me/profile/`,
//       `${process.env.VITE_API_BASE_URL}/api/users/me/settings/`,
//       `${process.env.VITE_API_BASE_URL}/api/users/me/workspaces/?v=${Date.now()}`,
//     ];

//     urls.forEach((url) => preloadItem(url));
//   }, []);
// };

export function PreloadResources() {
  return (
    // usePreloadResources();
    null
  );
}