This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState, useMemo } from 'react'; | |
import { useEvents, usePrevious, useWatchables, WatchKeys } from '@moss/react-hooks'; | |
import { LayerBaseProps } from './interfaces'; | |
import useMap from '../../hooks/useMap'; | |
import isEqual from 'lodash-es/isEqual'; | |
const defaultOnProp = {}; | |
const defaultWatchProp = {}; | |
export type LayerConstructor<T> = new (...params: any[]) => T; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import the @konmuc/authc dependencies | |
const express = require('express'); | |
const mongoose = require('mongoose'); | |
const { Schema } = mongoose; | |
const bodyParser = require('body-parser'); | |
// import the @konmuc/authc middleware and router | |
const authc = require('@konmuc/authc'); | |
const authcRouter = require('@konmuc/authc/router'); |