Skip to content

Conversation

@miya
Copy link
Member

@miya miya commented Nov 17, 2025

@miya miya requested a review from yuki-takei November 17, 2025 10:48
@miya miya self-assigned this Nov 17, 2025

const isPrinting = usePrintMode();

const isPrinting = usePrintMode();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isPrinting が二重に定義されていたので削除


const EditPage = (props) => {
const isEditable = useIsEditable();
const { mutate: mutateEditorMode } = useEditorMode();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useEditorMode は mutate を提供していない

import type { JSX, ReactNode } from 'react';

// biome-ignore lint/style/noRestrictedImports: ignore
import { usePrintMode } from '~/client/services/use-print-mode';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usePrintMode は最近実装された hook だと思うのですが Lint error が出ていました。

一旦 ignore させ CI 上でエラーを出さないようにしたのですがどのように対処するのがよいでしょうか?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど、悩ましい

やりたいこととしては、print mode だったらサイドコンテンツがないときと同じように children のみをレンダリングさせたいんだけど、このままだと SSR でも import してしまうのであまりよくない

かといってプログラマブルに制御するのをやめて、 div.grw-side-contents-containerd-print-none を設定して CSS 側で消すことにすると、そもそもの #10505 が直らない
(と、コード内コメントに書いておいた方がいいな)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

後続ストーリー作っておいてほしい

import type { JSX, ReactNode } from 'react';

// biome-ignore lint/style/noRestrictedImports: ignore
import { usePrintMode } from '~/client/services/use-print-mode';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほど、悩ましい

やりたいこととしては、print mode だったらサイドコンテンツがないときと同じように children のみをレンダリングさせたいんだけど、このままだと SSR でも import してしまうのであまりよくない

かといってプログラマブルに制御するのをやめて、 div.grw-side-contents-containerd-print-none を設定して CSS 側で消すことにすると、そもそもの #10505 が直らない
(と、コード内コメントに書いておいた方がいいな)

import type { JSX, ReactNode } from 'react';

// biome-ignore lint/style/noRestrictedImports: ignore
import { usePrintMode } from '~/client/services/use-print-mode';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

後続ストーリー作っておいてほしい

@yuki-takei yuki-takei merged commit 6244d35 into dev/7.4.x Nov 18, 2025
16 checks passed
@yuki-takei yuki-takei deleted the fix/174327-editor-mode-shortcut-keys-not-working-2 branch November 18, 2025 20:08
@mergify mergify bot added the queued label Nov 18, 2025
@mergify
Copy link
Contributor

mergify bot commented Nov 18, 2025

This pull request has been removed from the queue for the following reason: draft pull request creation failed.

The draft pull request cannot be created.

If you want to requeue this pull request, you can post a @mergifyio requeue comment.

@mergify mergify bot added dequeued and removed queued labels Nov 18, 2025
@github-actions github-actions bot mentioned this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants