mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Change to preferred export format (#2567)
### What This PR updates the example for the hook to use the export format that is recommended in the ADR we've written on export types.
This commit is contained in:
		
							parent
							
								
									753d6681ff
								
							
						
					
					
						commit
						a113f9c2c0
					
				@ -17,7 +17,7 @@ Example:
 | 
			
		||||
import { ITagPayload } from 'interfaces/tags';
 | 
			
		||||
import useAPI from '../useApi/useApi';
 | 
			
		||||
 | 
			
		||||
const useTagTypesApi = () => {
 | 
			
		||||
export const useTagTypesApi = () => {
 | 
			
		||||
    const { makeRequest, createRequest, errors, loading } = useAPI({
 | 
			
		||||
        propagateErrors: true,
 | 
			
		||||
    });
 | 
			
		||||
@ -87,6 +87,4 @@ const useTagTypesApi = () => {
 | 
			
		||||
        loading,
 | 
			
		||||
    };
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default useTagTypesApi;
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user