Skip to content

Circular dependencies in build #9

Description

@McManning

Have a bunch of circulars because I have a mapping of components -> types which is then used in the core useRipple hook. I need to move this elsewhere, like into the provider component or something. But also still allow a consumer to use the useRipple hook without needing to know the ins and outs of the default components...

Circular dependency: src/hooks/useRippleContext.ts -> src/hooks/useRipple.ts -> src/react/mappings.ts -> src/components/InlineCollection/index.ts -> src/components/InlineCollection/InlineCollection.tsx -> src/components/InlineInstancePage/index.ts -> src/components/InlineInstancePage/InlineInstancePage.tsx 
-> src/components/Field/index.ts -> src/components/Field/Field.tsx -> src/components/Field/ValueFieldRenderer.tsx -> src/hooks/useRippleContext.ts        
Circular dependency: src/hooks/index.ts -> src/hooks/useCollection.ts -> src/hooks/useRippleContext.ts -> src/hooks/useRipple.ts -> src/react/mappings.ts 
-> src/components/InlineCollection/index.ts -> src/components/InlineCollection/InlineCollection.tsx -> src/components/InlineInstancePage/index.ts -> src/components/InlineInstancePage/InlineInstancePage.tsx -> src/components/Field/index.ts -> src/components/Field/Field.tsx -> src/components/Field/ValueFieldRenderer.tsx -> src/components/Debug/index.ts -> src/components/Debug/Debug.tsx -> src/hooks/index.ts
Circular dependency: src/hooks/index.ts -> src/hooks/useCollection.ts -> src/hooks/useRippleContext.ts -> src/hooks/useRipple.ts -> src/react/mappings.ts 
-> src/components/InlineCollection/index.ts -> src/components/InlineCollection/InlineCollection.tsx -> src/components/InlineInstancePage/index.ts -> src/components/InlineInstancePage/InlineInstancePage.tsx -> src/components/Field/index.ts -> src/components/Field/Field.tsx -> src/components/Conditional/index.ts -> src/components/Conditional/Conditional.tsx -> src/hooks/index.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions