You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are errors in the code examples in resources introduction on dojo.io. Since the resources are a very new addition and there is no widespread use in the public examples so far, these should be fixed, especially the one about the createDataMiddleware function. I just mention the second one as it's in the same document.
Bug
There are errors in the code examples in resources introduction on dojo.io. Since the resources are a very new addition and there is no widespread use in the public examples so far, these should be fixed, especially the one about the createDataMiddleware function. I just mention the second one as it's in the same document.
Package Version:
Current dojo.io for v.7 : https://dojo.io/learn/resources/introduction
Code
Expected behavior:
Code example for ResourceAwareWidget.tsx should read:
const resource = createResourceMiddleware <ResourceData>();
Code example for App.tsx should read:
const template = createMemoryResourceTemplate<{ foo: string }>();
Actual behavior:
Code example for ResourceAwareWidget.tsx reads:
const resource = createDataMiddleware<ResourceData>();
Code example for App.tsx reads:
const myTemplate = createMemoryResourceTemplate<{ foo: string }>();
The text was updated successfully, but these errors were encountered: