Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redux support? #3

Open
GuyPie opened this issue Sep 20, 2017 · 8 comments
Open

Redux support? #3

GuyPie opened this issue Sep 20, 2017 · 8 comments

Comments

@GuyPie
Copy link

GuyPie commented Sep 20, 2017

When using this library with Redux I'm getting the error 'Error: Could not find "store" in either the context or props'. Is it possible to send the redux store to the router in some way?

@vladsoroceanu
Copy link

Hi,

I am wondering the same thing too. Much appreciated if any help can be provided on this topic. Thanks!

@PM00095
Copy link

PM00095 commented Oct 19, 2018

any plan to add redux support?

@Anber
Copy link
Contributor

Anber commented Nov 9, 2018

I hope It has been fixed in 0.3.6. @vladsoroceanu @PM00095 could you check it, please?

@christopherthielen
Copy link
Member

#138

@PM00095
Copy link

PM00095 commented Nov 9, 2018

Let me check that and let me know if found some issues.

@philmday
Copy link

philmday commented Oct 5, 2019

did any of you get redux working with this? I get the following problems when I connect state to props:

Unknown provider: [object Object]DirectiveProvider <- [object Object]Directive]

Is there anyway of doing in this in javascript?


@Anber
Copy link
Contributor

Anber commented Oct 5, 2019

@philmday, looks like hybrid can’t recognize the type of your view. You can specify it explicitly by adding $type: "react" to your view definition.

@alon24
Copy link

alon24 commented Oct 18, 2019

@Anber @philmday
I too have the same issue:
I define the states in angularjs code, added $type, still does not see the store getting:

		$stateProvider
			.state('index', {
			url: _embeddedContextRoot,
			abstract: true,
			component: ReactHome,
			$type: "react"
		})
       .state('main', {
				parent: 'index',
				url: '/main',
				$type: "react",
				views: {
					mainContent: {
						component: Overview
					}
				}
			})

Result:

angular.js:15567 Error: [$injector:unpr] Unknown provider: [object Object]DirectiveProvider <- [object Object]Directive
https://errors.angularjs.org/1.7.8/$injector/unpr?p0=%5Bobject%20Object%5DDirectiveProvider%20%3C-%20%5Bobject%20Object%5DDirective
    at angular.js:138
    at angular.js:4924
    at Object.getService [as get] (angular.js:5084)
    at angular.js:4929
    at Object.getService [as get] (angular.js:5084)
    at getComponentBindings (templateFactory.js:179)
    at TemplateFactory.push../node_modules/@uirouter/angularjs/lib-esm/templateFactory.js.TemplateFactory.makeComponentTemplate (templateFactory.js:168)
    at Ng1ViewConfig.getTemplate (views.js:74)
    at Object.<anonymous> (viewDirective.js:310)
    at angular.js:1388 "<ui-view name="mainContent" portalview="[object Object]" class="ng-scope">"

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

No branches or pull requests

7 participants