The key will be the relay globalID and store all db item data. When the node is recovered, the viewerCanSee will filter this.
postGlobalIDpostGlobalIDcommentGlobalID
| // History | |
| import { createBrowserHistory } from 'history'; | |
| const history = createBrowserHistory(); | |
| export default history; | |
| // App | |
| import React from 'react'; | |
| import { Router } from 'react-router-dom'; |
| // Reference: https://relay.dev/docs/guides/network-layer | |
| import { Environment, Network, RecordSource, Store } from 'relay-runtime'; | |
| // Function to get the authentication token | |
| export const getToken = () => { | |
| return localStorage.getItem('authentication_token'); | |
| }; | |
| // Define a function that fetches the results of an operation (query/mutation/etc) |
| [flake8] | |
| max-line-length = 88 | |
| extend-exclude = .venv | |
| extend-ignore = | |
| E203, # whitespace before ':' (conflicts with Black) | |
| E231, # Bad trailing comma (conflicts with Black) | |
| E501, # line too long (conflicts with Black) | |
| W503, # line break before binary operator (conflicts with Black) |
| import { AsyncLocalStorage } from 'async_hooks' | |
| import DataLoader from 'dataloader' | |
| import { ObjectId } from 'mongodb' | |
| import { z } from 'zod' | |
| import { | |
| Connection, | |
| ConnectionArgs, | |
| connectionArgsSchema, |
| import { redirect, type LoaderFunctionArgs } from '@remix-run/node' | |
| import { Form, useLoaderData } from '@remix-run/react' | |
| import { sessionCookie } from '../session.server' | |
| export async function loader({ request }: LoaderFunctionArgs) { | |
| const cookieHeader = request.headers.get('Cookie') | |
| const cookie = await sessionCookie.parse(cookieHeader) | |
| if (!cookie) { | |
| return redirect('/login') | |
| } |
| [alias] | |
| # commit | |
| ci = commit | |
| # checkout to branch | |
| co = checkout | |
| # checkout to a new branch | |
| cb = checkout -b | |
| # short format status with branch | |
| st = status -sb | |
| # unstage all changes |
| #!/usr/bin/bash | |
| set -e | |
| die() { echo >&2 "!! $*"; exit 1; } | |
| export DESKTOP_WAYLAND=true | |
| SENTINEL_FILE="steamos-session-select" |