graph-react-starter's People
graph-react-starter's Issues
API design - getting current user
const [user, userLoading ] = useGet<User>('/me');
which calls
export function useGet<T = any>(resource: string, deps?: unknown[], options?: GetOptions) : [T | undefined, boolean, any] {}
is practical but a bit obscure and hard to discover. Ideally, we are probably looking to get close to something like:
User.current
or something like that, right?
useGet
makes it easier to make the HTTP call but one needs to know that to get the current user, they need to make a get request that will return a User
instance by call the /me
URI. That's quite a lot to discover for a pretty common action, isn't it?
Unable to login with M365 Dev Tenant
default style and layout to boostrap things easily (fabric core?)
ideally, we should suggest or provide something like boostrap, material or other grid/style systems to setup common layouts without having to fight with CSS incantations.
Is Fabric core the suggested approach here? https://developer.microsoft.com/en-us/fluentui#/get-started/web#fabric-core
Build gives a warning which prevents seeing the URL in Github Codespaces
After running yarn start
in Github Codespaces a warning appears due to deps
and options
not being passed into the useGet hook dependency list. That blocked seeing the URL that I need to click for the forwarding Codespaces does.
I updated the useGet dependencies to [isSignedIn, resource, deps, options]
and the warning went away. Haven't look if adding those breaks anything else though.
react hook warning
./src/mgt.ts
Line 58:6: React Hook useEffect has missing dependencies: 'deps' and 'options'. Either include them or remove the dependency array react-hooks/exhaustive-deps
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
Yarn install error with Github Codespaces
First time I ran yarn I got this error.
error An unexpected error occurred: "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz:
ENOENT: no such file or directory, open '/usr/local/share/yarn-cache/v4/[email protected]
79b1bc06fb74a8cfb01cbdedf945584b1b9707f0/node_modules/@jest/console/.yarn-tarball.tgz'".
Ran it again and it was fine though. Might be a Github Codespaces thing (haven't tried locally)?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.