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:
parent
5e9b9a3764
commit
4b3cd3c6e1
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user