diff --git a/.all-contributorsrc b/.all-contributorsrc
index 7d16c1c4..615da5b0 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -194,6 +194,18 @@
"contributions": [
"talk"
]
+ },
+ {
+ "login": "conartist6",
+ "name": "Conrad Buck",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/540777?v=4",
+ "profile": "http://burningpotato.com",
+ "contributions": [
+ "code",
+ "doc",
+ "test"
+ ]
}
- ]
+ ],
+ "repoType": "github"
}
diff --git a/README.md b/README.md
index 169bf7b8..e8dfda16 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
[![npm downloads](https://img.shields.io/npm/dm/redux-subspace.svg?style=flat-square)](https://www.npmjs.com/package/redux-subspace)
[![License: MIT](https://img.shields.io/npm/l/redux-subspace.svg?style=flat-square)](/LICENSE.md)
-[![All Contributors](https://img.shields.io/badge/all_contributors-18-orange.svg?style=flat-square)](#contributors)
+[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
[![Watch on GitHub](https://img.shields.io/github/watchers/ioof-holdings/redux-subspace.svg?style=social)](https://github.com/ioof-holdings/redux-subspace/watchers)
@@ -84,10 +84,10 @@ Thanks goes to these wonderful people ([emojis](https://github.com/kentcdodds/al
-| [
Michael Peyper](https://github.com/mpeyper)
[๐ฌ](#question-mpeyper "Answering Questions") [๐](https://github.com/ioof-holdings/redux-subspace/issues?q=author%3Ampeyper "Bug reports") [๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=mpeyper "Code") [๐](https://github.com/ioof-holdings/redux-subspace/commits?author=mpeyper "Documentation") [๐ก](#example-mpeyper "Examples") [๐ค](#ideas-mpeyper "Ideas, Planning, & Feedback") [๐](#infra-mpeyper "Infrastructure (Hosting, Build-Tools, etc)") [๐](#review-mpeyper "Reviewed Pull Requests") [๐ฆ](#platform-mpeyper "Packaging/porting to new platform") [๐ข](#talk-mpeyper "Talks") [โ ๏ธ](https://github.com/ioof-holdings/redux-subspace/commits?author=mpeyper "Tests") [๐ง](#tool-mpeyper "Tools") | [
Jonathan Peyper](https://github.com/jpeyper)
[๐ฌ](#question-jpeyper "Answering Questions") [๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=jpeyper "Code") [๐ค](#ideas-jpeyper "Ideas, Planning, & Feedback") [๐](#review-jpeyper "Reviewed Pull Requests") [โ ๏ธ](https://github.com/ioof-holdings/redux-subspace/commits?author=jpeyper "Tests") | [
Vivian Farrell](https://github.com/vivian-farrell)
[๐ค](#ideas-vivian-farrell "Ideas, Planning, & Feedback") [๐ฆ](#platform-vivian-farrell "Packaging/porting to new platform") [๐](#review-vivian-farrell "Reviewed Pull Requests") [๐ข](#talk-vivian-farrell "Talks") | [
Emily Rosengren](https://github.com/emirose)
[๐ข](#talk-emirose "Talks") | [
Morgan Larosa](https://github.com/chaos95)
[๐](#infra-chaos95 "Infrastructure (Hosting, Build-Tools, etc)") | [
Amit Kothari](http://amitkothari.com)
[๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=amitkothari "Code") [๐ก](#example-amitkothari "Examples") | [
Riku Rouvila](http://rikurouvila.fi)
[๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=rikukissa "Code") [๐](https://github.com/ioof-holdings/redux-subspace/commits?author=rikukissa "Documentation") [โ ๏ธ](https://github.com/ioof-holdings/redux-subspace/commits?author=rikukissa "Tests") |
+| [
Michael Peyper](https://github.com/mpeyper)
[๐ฌ](#question-mpeyper "Answering Questions") [๐](/ioof-holdings/redux-subspace/issues?q=author%3Ampeyper "Bug reports") [๐ป](/ioof-holdings/redux-subspace/commits?author=mpeyper "Code") [๐](/ioof-holdings/redux-subspace/commits?author=mpeyper "Documentation") [๐ก](#example-mpeyper "Examples") [๐ค](#ideas-mpeyper "Ideas, Planning, & Feedback") [๐](#infra-mpeyper "Infrastructure (Hosting, Build-Tools, etc)") [๐](#review-mpeyper "Reviewed Pull Requests") [๐ฆ](#platform-mpeyper "Packaging/porting to new platform") [๐ข](#talk-mpeyper "Talks") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=mpeyper "Tests") [๐ง](#tool-mpeyper "Tools") | [
Jonathan Peyper](https://github.com/jpeyper)
[๐ฌ](#question-jpeyper "Answering Questions") [๐ป](/ioof-holdings/redux-subspace/commits?author=jpeyper "Code") [๐ค](#ideas-jpeyper "Ideas, Planning, & Feedback") [๐](#review-jpeyper "Reviewed Pull Requests") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=jpeyper "Tests") | [
Vivian Farrell](https://github.com/vivian-farrell)
[๐ค](#ideas-vivian-farrell "Ideas, Planning, & Feedback") [๐ฆ](#platform-vivian-farrell "Packaging/porting to new platform") [๐](#review-vivian-farrell "Reviewed Pull Requests") [๐ข](#talk-vivian-farrell "Talks") | [
Emily Rosengren](https://github.com/emirose)
[๐ข](#talk-emirose "Talks") | [
Morgan Larosa](https://github.com/chaos95)
[๐](#infra-chaos95 "Infrastructure (Hosting, Build-Tools, etc)") | [
Amit Kothari](http://amitkothari.com)
[๐ป](/ioof-holdings/redux-subspace/commits?author=amitkothari "Code") [๐ก](#example-amitkothari "Examples") | [
Riku Rouvila](http://rikurouvila.fi)
[๐ป](/ioof-holdings/redux-subspace/commits?author=rikukissa "Code") [๐](/ioof-holdings/redux-subspace/commits?author=rikukissa "Documentation") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=rikukissa "Tests") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
-| [
Michael](https://github.com/mradionov)
[๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=mradionov "Code") | [
James Adams](https://medium.com/@jamesadams0)
[๐](https://github.com/ioof-holdings/redux-subspace/commits?author=James-E-Adams "Documentation") | [
Lee Kyles](https://github.com/lkyles1991)
[๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=lkyles1991 "Code") [โ ๏ธ](https://github.com/ioof-holdings/redux-subspace/commits?author=lkyles1991 "Tests") | [
Evert Bouw](https://github.com/evertbouw)
[๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=evertbouw "Code") [โ ๏ธ](https://github.com/ioof-holdings/redux-subspace/commits?author=evertbouw "Tests") | [
Paweล Brรณd](https://github.com/Crazy-Ivan)
[๐](https://github.com/ioof-holdings/redux-subspace/issues?q=author%3ACrazy-Ivan "Bug reports") | [
majo44](https://github.com/majo44)
[๐](https://github.com/ioof-holdings/redux-subspace/issues?q=author%3Amajo44 "Bug reports") [๐ป](https://github.com/ioof-holdings/redux-subspace/commits?author=majo44 "Code") [โ ๏ธ](https://github.com/ioof-holdings/redux-subspace/commits?author=majo44 "Tests") | [
Garth Newton](https://github.com/garth-newton)
[๐](https://github.com/ioof-holdings/redux-subspace/issues?q=author%3Agarth-newton "Bug reports") [๐](https://github.com/ioof-holdings/redux-subspace/commits?author=garth-newton "Documentation") |
-| [
Mateusz Burzyลski](https://github.com/Andarist)
[๐ง](#tool-Andarist "Tools") | [
psamusev](https://github.com/psamusev)
[๐](https://github.com/ioof-holdings/redux-subspace/issues?q=author%3Apsamusev "Bug reports") | [
Jay Phelps](https://twitter.com/_jayphelps)
[๐](#review-jayphelps "Reviewed Pull Requests") | [
Mark Erikson](http://blog.isquaredsoftware.com)
[๐ข](#talk-markerikson "Talks") |
+| [
Michael](https://github.com/mradionov)
[๐ป](/ioof-holdings/redux-subspace/commits?author=mradionov "Code") | [
James Adams](https://medium.com/@jamesadams0)
[๐](/ioof-holdings/redux-subspace/commits?author=James-E-Adams "Documentation") | [
Lee Kyles](https://github.com/lkyles1991)
[๐ป](/ioof-holdings/redux-subspace/commits?author=lkyles1991 "Code") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=lkyles1991 "Tests") | [
Evert Bouw](https://github.com/evertbouw)
[๐ป](/ioof-holdings/redux-subspace/commits?author=evertbouw "Code") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=evertbouw "Tests") | [
Paweล Brรณd](https://github.com/Crazy-Ivan)
[๐](/ioof-holdings/redux-subspace/issues?q=author%3ACrazy-Ivan "Bug reports") | [
majo44](https://github.com/majo44)
[๐](/ioof-holdings/redux-subspace/issues?q=author%3Amajo44 "Bug reports") [๐ป](/ioof-holdings/redux-subspace/commits?author=majo44 "Code") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=majo44 "Tests") | [
Garth Newton](https://github.com/garth-newton)
[๐](/ioof-holdings/redux-subspace/issues?q=author%3Agarth-newton "Bug reports") [๐](/ioof-holdings/redux-subspace/commits?author=garth-newton "Documentation") |
+| [
Mateusz Burzyลski](https://github.com/Andarist)
[๐ง](#tool-Andarist "Tools") | [
psamusev](https://github.com/psamusev)
[๐](/ioof-holdings/redux-subspace/issues?q=author%3Apsamusev "Bug reports") | [
Jay Phelps](https://twitter.com/_jayphelps)
[๐](#review-jayphelps "Reviewed Pull Requests") | [
Mark Erikson](http://blog.isquaredsoftware.com)
[๐ข](#talk-markerikson "Talks") | [
Conrad Buck](http://burningpotato.com)
[๐ป](/ioof-holdings/redux-subspace/commits?author=conartist6 "Code") [๐](/ioof-holdings/redux-subspace/commits?author=conartist6 "Documentation") [โ ๏ธ](/ioof-holdings/redux-subspace/commits?author=conartist6 "Tests") |
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
diff --git a/packages/react-redux-subspace/docs/README.md b/packages/react-redux-subspace/docs/README.md
index 825079c2..f03f2ea5 100644
--- a/packages/react-redux-subspace/docs/README.md
+++ b/packages/react-redux-subspace/docs/README.md
@@ -5,4 +5,5 @@
* [Examples](/docs/Examples.md#react-redux-subspace)
* [API Reference](/packages/react-redux-subspace/docs/api/README.md)
* [SubspaceProvider](/packages/react-redux-subspace/docs/api/SubspaceProvider.md)
+ * [createSubspaceProvider](/packages/react-redux-subspace/docs/api/createSubspaceProvider.md)
* [subspaced](/packages/react-redux-subspace/docs/api/subspaced.md)
diff --git a/packages/react-redux-subspace/docs/api/README.md b/packages/react-redux-subspace/docs/api/README.md
index 9e0b6edc..9d2506d9 100644
--- a/packages/react-redux-subspace/docs/api/README.md
+++ b/packages/react-redux-subspace/docs/api/README.md
@@ -1,4 +1,5 @@
# API Reference
* [SubspaceProvider](/packages/react-redux-subspace/docs/api/SubspaceProvider.md)
+* [createSubspaceProvider](/packages/react-redux-subspace/docs/api/createSubspaceProvider.md)
* [subspaced](/packages/react-redux-subspace/docs/api/subspaced.md)
diff --git a/packages/react-redux-subspace/docs/api/createSubspaceProvider.md b/packages/react-redux-subspace/docs/api/createSubspaceProvider.md
new file mode 100644
index 00000000..b539b74e
--- /dev/null
+++ b/packages/react-redux-subspace/docs/api/createSubspaceProvider.md
@@ -0,0 +1,65 @@
+# `createSubspaceProvider([storeKey], [parentStoreKey])`
+
+A function that returns a new [SubspaceProvider](/packages/react-redux-subspace/docs/api/SubspaceProvider.md) which provides and consumes stores on the given context keys. `SubspaceProvider` itself is simply the result of calling `createSubspaceProvider()`.
+
+## Arguments
+
+1. `storeKey` (_string_): The context key to provide. The default is `store`, which is the default key that Redux's `connect` will look at.
+2. `parentStoreKey` (_string_): The context key to on which to look for a store. The default is `store`, which is the key provided by Redux's default Provider.
+
+## Examples
+
+Here is a basic example in which a subspace is provided on the 'subAppStore' key. This can be useful if you have a micro-frontend which will need to return rendering control to its parent, which will expect to have the root store defined on the `store` context key.
+
+```javascript
+import React from `react`
+import { createSubspaceProvider } from 'react-redux-subspace'
+import { connect } from 'react-redux'
+
+const SubspaceProvider = createSubspaceProvider('subAppStore')
+
+function MyComponent() {
+ return (
+
{props.value}
) + + let AlternateContextKeySubspaceProvider = createSubspaceProvider(storeKey) + + let testComponent = render( +{props.value}
) + + let AlternateContextKeySubspaceProvider = createSubspaceProvider(storeKey, rootStoreKey) + + let testComponent = render( +