0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-21 18:18:57 +01:00

fix(jsx/dom): import from correct file for avoiding circular dependency (#2268)

This commit is contained in:
Taku Amano 2024-02-25 13:41:59 +09:00 committed by GitHub
parent 5e9b9a3764
commit 4b3cd3c6e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@ import type { JSXNode } from '../base.ts'
import type { FC, Child, Props } from '../base.ts'
import { DOM_RENDERER, DOM_ERROR_HANDLER, DOM_STASH } from '../constants.ts'
import type { Context as JSXContext } from '../context.ts'
import { globalContexts as globalJSXContexts } from '../context.ts'
import { globalContexts as globalJSXContexts, useContext } from '../context.ts'
import type { EffectData } from '../hooks/index.ts'
import { STASH_EFFECT } from '../hooks/index.ts'
import { useContext, createContext } from './index.ts'
import { createContext } from './context.ts' // import dom-specific versions
const eventAliasMap: Record<string, string> = {
Change: 'Input',

View File

@ -2,10 +2,10 @@ import type { JSXNode } from '../base'
import type { FC, Child, Props } from '../base'
import { DOM_RENDERER, DOM_ERROR_HANDLER, DOM_STASH } from '../constants'
import type { Context as JSXContext } from '../context'
import { globalContexts as globalJSXContexts } from '../context'
import { globalContexts as globalJSXContexts, useContext } from '../context'
import type { EffectData } from '../hooks'
import { STASH_EFFECT } from '../hooks'
import { useContext, createContext } from '.'
import { createContext } from './context' // import dom-specific versions
const eventAliasMap: Record<string, string> = {
Change: 'Input',