Skip to content

テンプレートの自由配置/Timer改善 - #30

Merged
aster-void merged 5 commits into
mainfrom
Free-template
Nov 14, 2025
Merged

テンプレートの自由配置/Timer改善#30
aster-void merged 5 commits into
mainfrom
Free-template

Conversation

@TKHR-Shiu

Copy link
Copy Markdown
Contributor

No description provided.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 13, 2025

Copy link
Copy Markdown

Deploying life-code with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6a062f4
Status: ✅  Deploy successful!
Preview URL: https://ca388135.life-code.pages.dev
Branch Preview URL: https://free-template.life-code.pages.dev

View logs

Comment thread src/routes/+page.svelte Outdated
if (isProgress) {
clearInterval(timerId);
timerId = setInterval(() => {
sendEvent("progress");

@aster-void aster-void Nov 13, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

実はもっとシンプルに、

<script>
  let timer: "runnimg" | "stopped" = $state("stopped");
  let timerInterval = $state(1000);
  $effect(() => {
    if (timer === "stopped") return;
    const timerId = setTimeout(() => {
      // 省略
    }, timerInterval);
    return () => clearTimeout(timerId);
  })
</script>

と書けてしまうんだよね

@aster-void

Copy link
Copy Markdown
Contributor

今は動作確認ができないけど、コメント残したところと PR のタイトル以外はよさそう

@aster-void

Copy link
Copy Markdown
Contributor

PR のタイトルは変更点が分かりやすいようにつけてね

@TKHR-Shiu TKHR-Shiu changed the title コンフリクトの解消 テンプレートの自由配置、Timer改善 Nov 14, 2025
@TKHR-Shiu TKHR-Shiu changed the title テンプレートの自由配置、Timer改善 テンプレートの自由配置/Timer改善 Nov 14, 2025

@aster-void aster-void left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:yosasou:

@aster-void
aster-void merged commit 1f84b1e into main Nov 14, 2025
4 checks passed
@aster-void
aster-void deleted the Free-template branch November 14, 2025 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants