File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
src/apps/example-context/react-frontend/src
example-aggregate/sections/list Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1+ import { InMemoryExampleAggregateRepository } from '@src/example-aggregate/infrastructure/inMemoryExampleAggregateRepository' ;
2+ import { ExampleAggregateList } from '@src/example-aggregate/sections/list/exampleAggregateList' ;
3+
4+ const repository = new InMemoryExampleAggregateRepository ( ) ;
5+
6+ export function ExampleAggregateListFactory ( ) {
7+ return < ExampleAggregateList repository = { repository } /> ;
8+ }
Original file line number Diff line number Diff line change 1- import { InMemoryExampleAggregateRepository } from '@src/example-aggregate/infrastructure/inMemoryExampleAggregateRepository' ;
2- import { ExampleAggregateList } from '@src/example-aggregate/sections/list/exampleAggregateList' ;
1+ import { ExampleAggregateListFactory } from '@src/example-aggregate/sections/list/exampleAggregateListFactory' ;
32import { Layout } from '@src/layout/sections/layout' ;
43import { RouterProvider , createBrowserRouter } from 'react-router-dom' ;
54
6- const repository = new InMemoryExampleAggregateRepository ( ) ;
7-
85const router = createBrowserRouter ( [
96 {
107 path : '/' ,
118 element : < Layout /> ,
129 children : [
1310 {
1411 path : '/' ,
15- element : < ExampleAggregateList repository = { repository } />
12+ element : < ExampleAggregateListFactory />
1613 }
1714 ]
1815 }
You can’t perform that action at this time.
0 commit comments